Software Development Network Logo
  • Audio and Video
  • Smart Devicet
  • Visual C++
  • Visual C#
  • .NET Development
  • SQL Server
  • SharePoint Products
  • VS Team System
  • IE Development
  • Game Technologies
  • Visual Studio
  • Visual FoxPro
  • Visual Basic
  • Microsoft ISV
  • Windows Forms

Software Development Network >> dmsy's Q&A profile

dmsy

Member List

Ross B.
mesh2005
smogit
Jose76
Frances83
m.m.b.
DZork
mpennin
baztheman
j_l_brooks
Chris W
h1
William Vaughn
Tom Frey
narend
Nonu_k
figo2476
Roger Mitchell
Thomas Greenleaf
andyr2005
Only Title

dmsy's Q&A profile

  • .NET Development RowUpdated event for Provider Independent DataAdapter

    I am attempting to move to the Provider Independent classes for Data access. Mostly it is going well but I have hit a wall trying to setup the RowUpdated event on a DataAdapter. Using the OleDb classes I would use: System.Data.OleDb. OleDbDataAdapter da; // set up dataset and read table etc...... da.RowUpdated += new System.Data.OleDb. OleDbRowUpdatedEventHandler (My_RowUpdated); Unfortunately the System.Common.DbDataAdapter class does not appear to have a public RowUpdated event handler and so I have to use some casting to make it work: ((System.Data.OleDb. OleDbDataAdapter )da).RowUpdated += new System.Data.OleDb. OleDbRowUpdatedEventHandler (My_RowUpdated); Am I missing something here Is there a way to achieve th ...Show All

  • Windows Forms Add values in DataColumns rows

    I have a Cost column that is part of a DataTable....And when i add values to the rows I want to add them up and return the result but i am getting stuck...this is where i began...can anyone help me out //Globals System.Data. DataColumn _column2 = new System.Data. DataColumn ( "Cost" , typeof ( decimal )); private decimal _cost; public decimal AddCostColumn() { foreach (System.Data. DataRow row in _column2) { for ( int x = 0; x < row[_column2]; x++) { _cost = row[x].ToString(); } } } you can use the Datatable's compute column to calculate the total.... object result = theDataTable.Compute("Sum( FieldName )"); this will calculate the total for that co ...Show All

  • SQL Server SSIS - Transfer Database Task - Error

    Help anyone!! I fighting with the same error. I've tried all the suggestions on the web and more. Nothing seems to work. Has anyone found an answer from Microsoft Error: The Execute method on the task returned error code 0x80131500 (ERROR : errorCode=-1073548784 description=Executing the query "EXEC dbo.sp_grantdbaccess @loginame = N'sctcs\ssoadmin', @name_in_db = N'ssoadmin' " failed with the following error: "User, group, or role 'ssoadmin' already exists in the current database.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. helpFile= helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4 ...Show All

  • Visual Studio Express Editions Problem with outlook - "messaging interface error"

    I am receiving the following error message: The messaging interface has returned an unknown error. If the problem persists, restart Outlook. This has work before so I'm not sure what happened. Even worse, when I open outlook on its own, and click new mail, I get the same error message. So currently I cannot create new mails, forward or reply. Please help. I temporarily overcame the problem by repairing my Office 2003installation, but the message returned after restarting my PC. I conclude there is a compatibility problem that Microsoft need to look into, but I don't know where to post this issue. Regards, Mike ...Show All

  • Visual C++ native WIFI -- wlanapi

    Hello there, I am trying to write a small software that manipulate the wlan configuration in windows XP. I download the beta version of Wireless LAN API for Windows XP SP2. While I am trying to give it a shot, I read somewhere that WPA (Wi-Fi Protected Access) is not supported in this API. Since I am not 100% sure, can anyone give me any information about it Thanks a lot. For those that are still monitoring this thread, or happen to stumble upon it - I have created an executable that performs the basic Native Wifi Functions (list APs, NICs, Add/Delete Profiles, Enable Interface "Use Windows to configure my wireless network settings") This program may be used within logon scripts, batch files, and manually. I have also ...Show All

  • Visual C++ registering mschart.ocx

    Hi I am trying to register msChart.ocx file using regsvr32.exe. I tried it but it not getting instantiated in VC++. Always getting a message The activex control can not be instantiated. Hello The more appropriate place for your question is probably the COM newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.ole&lang=en&cr=US Thanks Damien ...Show All

  • .NET Development FileStream and Sockets running slow...

    Maybe someone can shed some light here. I am using sockets and FileStream to send a file from client to server. Everything works fine, except it is REALLY slow. I mean like 2kb every 5 seconds. The basic rundown is: CLIENT: fs = new FileStream(@"c:\mailroot\MENU.pdf",FileMode.Open,FileAccess.Read); byte[] currentBuffer = new byte [16384]; fs.Read(currentBuffer,0,16384); return Encoding.ASCII.GetString(currentBuffer); SERVER: (Arg is the string of currentBuffer above) fs = new FileStream(@"c:\mailroot\temp_file.txt",FileMode.Create,FileAccess.Write); fs.Write(Encoding.ASCII.GetBytes(Arg),0,Arg.Length); Upon testing, I found that the read is quick, and the encoding is quick. Milliseconds. ...Show All

  • Visual Studio Team System folder already in use by another workspace?

    we are moving to use TS VC, we were using SS before. our SS is already locked-out i've cleaned the projects folder and i was trying to get a full version from TS VC - but i've got a message "the working folder bla-bla is already in use by another workspace on this computer " what is it does SS somehow mark the folder it's empty... is it something else we have some strict paths so i have to put the version into this exact folder Hello, this error indicates that you are trying to modify current workspace with local path, that is already used (or its parent is used) by another workspace. I guess that when you try to do get (or open from SCC) in VS2005 you are asked to select local path. This p ...Show All

  • Visual Studio 2008 (Pre-release) where can i find binary of wpf samples?

    i have downloaded wpf samples from microsoft site. there are hundreds of project available. problem is, none of them is compiled. and compiling every one of them is tedious. i suspect the samples in binary form are already in my hardisk(when i try to download the samples from local msdn). but where is it What if a user does not have Visual Studio 2005 + WPF extensions installed Then binaries are handy. I wanted to view WPF samples here at work in a virtual machine, that way I did not have to modify my current working VS 2005. ...Show All

  • .NET Development Determine file write permissions

    Say for example I am writing a new version of notepad. When I open the file, I only want read access. But I want to disable the File Save menu item if the user is not going to have permission to write the file anyhow. The actual situation is a bit more complicated, but it is similar. The File class does not seem to help me until I actually want to write the file. The FileAttributes.ReadOnly flag helps some, but doesn't tell me anything about ACL permissions or if the file is on a networked drive that is shared ReadOnly. I would think ACL would help, but I cannot figure out how to use the ACL class to do this check. Handling the exception is easy, but not good enough. I really do need to know ahead of time t ...Show All

  • .NET Development Delete lines from a text file

    I'm building a c# project and using a textfile to store information i store the information as following "company name" "time" "description" Now i have run into a problem, i need to be able to delete those three lines + the blank one below, without deleting the rest of the text file. Is this possible Did some reading and got all confused about it. This is what i use to load info from the text file into my text fields, depending on what i select in my listbox. Was thinking if anything similar was possible but instead off reading those lines into my text fields, i delete them. int vilken = this.listBox1.SelectedIndex; int vilken2 = this.listBox1.SelectedIndex * 4 + 1; TextReader TR = new StreamRea ...Show All

  • .NET Development replacing Thread.Sleep and Thread.Resume

    hrm... second post. dunno what happened to the first. how might I go about replacing the functionality of Thread.Sleep and Thread.Resume Steve Whitley wrote: here's what the code I'm wanting to change does: StackTrace Foo(Thread t) { t.Sleep(); StackTrace st = new StackTrace(t, true); t.Resume(); return st; } Sorry, missed the code. Yikes, that's scary. What is the arbitrary value that you're passing to t.Sleep() Resume() does nothing if Suspend() hasn't been called, the thread will be halted until the arbitrary time-span has expired, probably more. The StackTrace() constructor documentation says the thread should be suspended. You're using Sleep() instead of Suspend() because of the ...Show All

  • Visual C++ How to assign hotkeys to buttons in VS 2005

    Hi As the header says, I am trying to assign hotkeys to my buttons in VS 2005 (I am creating VC++ MFC Applications). In the older versions I used to put the '&' key before the letter eg e&xit to make the 'x' underlined and a hotkey. Can someone point me in the right direction please. I have trawled through help for over an hour and asked all my contacts! Thanks and regards in advance.   I found this issue: I use & to indicate hotkey on, say a button text "&Browse" so that Alt+B is my hotkey.  When I run the compiled program I don't see the underlined B until I tap the Alt key.  Then the underline will appear.  The hotkey is still fully functional. Using: ...Show All

  • Visual Studio Express Editions dll proporties and functions

    Hi! I have a very simple dll, just after running wizard. 1. How can I set DLL version or author tags Just like some professional DLLs have after right clicking it and clicking version 2. I am compiling this simple DLL after running wizard, but the problem is I can't access it's function (returning some int) from other languages (python). The problem disappears after adding extern "C". Why is that Why the wizard didn't add extern "C" 3. Where can I find tutorial about creating dlls for newbies 1) Add a version resource. 2) Exports from a C++ compiled DLL are "mangled", decorated with additional characters to allow overloaded C++ functions to be properly linked. "extern ...Show All

  • Visual Studio 2008 (Pre-release) Canvas.Get...Whatever

    Is static Canvas.GetLeft (GetRight/Bottom/Top) the only way to detect position of UIElement related to Canvas Why not to ask UIElement (FrameworkElement) its position, as it was in previouse release What are the reasons of it You say: That's fine, but if I have my UIElement docked in something else, then Canvas. We can not attach to all elements...   I don't quite understand...perhaps you can give me a concrete and detailed example like this:   When I have: <DockPanel>     <Button />     </Button /> </DockPanel> And I try ____, I expect ___ to happen, but ____ happens. Thx, Rob ...Show All

©2008 Software Development Network