ngunawar's Q&A profile
SQL Server ODBC & Multi-threading
I'm working on a C# (2005) app that requires shooting a large number of queries via Odbc, wait until the last one is done and then compute an overall result. Since the queries are not interdependent, I would like to get them to run concurrently on multiple threads. I did manage to get several queries run on different threads but the response time for the same query varies dramatically when another query is running concurently (even on a di ...Show All
Visual Studio 2008 (Pre-release) Cider in XAML mode by default
How I can turn off designer mode to open files in XAML mode by default Thanks. Yeah!Cider looks completly useless compared to Sparkle:-)Of course,you can always set default xml viewer instead of Cider,it'll preserve intellisense... ...Show All
Visual Studio Advice on installing Visual Studio 2005 Professional and SQL Server 2005 Developer
I've downloaded from MSDN the released versions of VS2005 Professional and SQL Server 2005 Developer editions. Does anyone know the proper sequence to install these products TIA, Richard I installed SQL Server Dev first, then installed VS, but when VS loads, there are no SQL components listed on the splash screen, just VB, C# and VWD. A colleague installed the other way, and has some SQL components listed ...Show All
Visual C# Finding SSID using .NET2005
I need to get the SSID of the AccessPoint or the Router i am connected to. How do get that Regards, ...Show All
.NET Development Saving a Serialized object to the Windows Registry
Hi all, I would like to take a System.Drawing.Point or System.Drawing.Location object or something like that (very simple objects) and be able to serialize an object, then save the serialization to the registry. Is it possible And if so, how do you do it Anybody got some code Thanks a lot, Andy p.s. I'm using VB.NET 2003. Hello Andy, Any object that is marked [Serializable] can be passed to a serialization Formatter [Binary or X ...Show All
Visual C# Share items over different projects
I thought there was a new feature in VS2005 to share project items over multiple projects (as for AssemblyInfo). Can somebody tell me how to do this Thanks! Hi Stefan! What exactly do you mean by sharing items Projects From my experience, having a project added to two different solutions and changing properties in either one, changes the file (and so makes these changes apply in the other solution as ...Show All
Visual Basic listbox I/O help plz
ok, i have contents of a listbox as follows (as example) a ab abc i have tried using listbox.text as the output like for textbox "print (1, blah.text & vbCrLf)" but it gives me the error that it cannot be part of the I/O or somthing i want to save that contents as "file.txt" as it looks above. how do i do that As this isnt particularly clear what your trying to do. The following will get the items f ...Show All
SQL Server Insert Trigger
I am facing problem in creating a insert trigger for the following scenario. i have transactions, control tables whenever i insert a record in transactions it should get value from the control table, increment that value in control table and update the same value as transaction_id for new transaction in transaction table. control table has these fields (control_desc, control_value) can some one help ...Show All
Windows Forms DataGrid: Updates requires a valid UpdateCommand when passed DataRow collection with modified rows
I am using DataGrid in simple form using Database Oracle. When I am updating the editing data, it is giving me this Error. System.InvalidOperationExcetion: Update requires a valid UpdateCommand when passed DataRow collection with  ...Show All
Visual C++ CListBox and AddString
Hi all, I'm currently tearing my hair out with a slight snagget... I'm writing a dialog which in turn calls up another modal dialog including a listbox control... (using MFC because I'm too dumb to code from scratch) The list box control needs to have user data added to it from parent and I also need to return the user choice within the listbox to the parent on completion. This would all be simple if I could use DoModal() to create the child win ...Show All
Visual C++ Question about "RUNTIME_CLASS"
Hi, This is a fairly newbie question so apologies if I am slow. I have a "MainFrame" thats a derivitive of a CMDIFrameWnd. I also have a descendant of that frame called ChildWnd, thats a derivite of CMDIChildWnd. I dont seem to declare the CMDIChildWnd any where apart from like this RUNTIME_CLASS(ChildWnd); I assume as the name suggests this is a dynamically declared and instantiated class, i guess since there can be lots of ...Show All
Visual Studio Team System Testing Native Code (C++ ) using Team Unit Testing frameworks
I have been looking for some pointers or guide lines as to how do I test C++ unmanaged code using Unit Tesing capabilities of VS 2005. Do I need to write wrappers in managed code ( a sort of mixed mode class one that calls into managed code and other that calls the native code) Any suggestion welcome Regds Dinesh I don't see any workaround for this. For ExpectedExeption attribute you can specify either managed exception type or type + ...Show All
Visual Basic Almost connected via serial port using VB 2005.... What is wrong with this app?
Hi There! I need to establish communication between my pc an analytical balance using VB 2005. I have a Form that can pick up an available COM port, send data (using serialPort.WriteLine(txtDatatoSend.Text & vbCrLf) and receive data (using System.IO.Ports.SerialDataReceivedEventArgs) from it but something in the code is still wrong. Using this Form I sent a connection command to the balance (CMD=SI) to get the weight on the balance back ...Show All
Visual Studio Bug with datetime picker?
I create report that uses stored procedure with 2 parameters. 1st parameter is datetime, 2nd is string. In preview mode I see datetime picker for 1st parameter. I pick September 1, 2005. I use Russian regional settings and date is displayed as dd.mm.yyyy (01.09.2005). It is OK. But after I click "View Report" date is changed to 09.01.2005 (January 9, 2005) and I get empty report because I have not data on this date. I click again and date is cha ...Show All
.NET Development Sharing code between projects
I have two projects containing a webservice and a corresponding webpage in asp.net. Both projects are written with C# code. It seems to me that in VC2005 the code needs to be placed in App_Code folder to be picked up and compiled. However with the increased level of code beeing shared between these projects I'd like to setup a shared path which both projects can access. Perhaps I'm missing something obvious but it seems that I cannot do th ...Show All
