David Keaveny's Q&A profile
Visual Studio Express Editions Repost on problem with debugger reporting wrong values
Saturday I posted a question about problems I was having with VC++ 2005 Express debugger. The thread I started has disappeared but the debugger problems have not. So I'm re-posting. The debugger is intermittantly showing wrong values for variables and faining to single step correctly through code. For example: in main: bool x = true; someFunc(x); void someFunc(bool x) { if(x) do A do B, etc. Inside someFunc, the debugger shows the ...Show All
Visual C++ MFC Message Routing to active view from a dialog box
Hey everyone, I an working on a MDI MFC application (although the multiple documents aren't currently being used, just the multiple views). The program uses a modeless dialog box to take user input. The dialog box has an edit box that lets a user type in a command and an enter button for the user to enter the command in the edit box. The program makes use of multiple views through the "new window" item in the window menu. ...Show All
Visual Basic how-to catch when data changed on form?
I have a form with both a TableAdapter and other TextBox. When the user changes the data in the fields connected to the TableAdapter and click the NEXT or PREVIOUS button, it calls the BindingNavigatorMoveNextItem.Click. My problem is: I checked me.dataset.HasChanges and it says FALSE (although the data was changed). What I don't understand is this: if the user click the NEXT or PREVIOUS button, the me.dataset.HasChanges says ...Show All
Software Development for Windows Vista Correlation/dehydration etc
Hello all, This may be a stupid question but I'm new to WWF and trying to get a handle on how it works. I'm having trouble understanding correlation. My understanding is that it allows workflows to be dehydrated, then upon a specific event rehydrated and the correlation is used to determine where in the workflow to start I'm probably a little off. I am just trying to understand how workflow instances can be offloaded then reloaded in t ...Show All
Windows Forms owner draw scroll bar...
Hi, Is there any way to owner draw the scroll bar of a webbrowser control Are there any examples out there It is possible to do it trough scripting in web pages... if there was a way to load this script in my browser, and hide it&nbs ...Show All
SQL Server synchronize MDB file
Hello, I have an Access database that updates each 5 minutes with data from a weather station. As you can imagine the access database is becomming huge, so I would like to get that data into SQl Express to make queries faster and better connectivity with visual webdeveloper. There is no way I can get the data directly into the SQL Express database, as the vendor only supplies a tool for MySQL and access through odbc. Is there a way to s ...Show All
Visual Basic client server
I know u can do client/server with winsock, but what is it and how do u get it Definition is Winsock http://en.wikipedia.org/wiki/Winsock There are other ways of doing client server - .NET remoting, Web Services are two others. ...Show All
SQL Server rename a file without xp_cmdshell
Hi: By default xp_cmdshell is disabled on new Installation of SQL Server 2005. I want to know how do I rename a file without using xp_cmdshell option . What are my options programmatically to rename a file without using xp_cmdshell from T-SQL. One option is to create a Active x VB Script that uses the file system object to rename a file in a DTS package and then run the package. Any ideas would be higly appreciated. Thanks Meher ...Show All
Windows Forms How do I open another form?
I'm trying to open another form from the Main form... I've Tried: EzResults.ActiveForm.Activate(); And EzResults.ActiveForm.Show(); And still doesn't work... Thank you for you help :) Chris If you're actually trying to open a form that's not already in memory, yo ...Show All
Visual Studio Team System Is there any simpler way of customizing FxCop
Hi, i am writing my own rules for FxCop. I thought it would be easier if FxCop generates any XML since i could traverse through the nodes of the xml and write my rule easily. But i came to know from David, Mike and Poguru that FxCop does not create any such XML. Is there any simpler or easier way to write my custom rules or is there any other way through which i can understand and write my own easily Thanks Guns, What ki ...Show All
Smart Device Development Loopback interface question and emulator IP
Hi, This is probably slightly out of topic here but I'd really appreciate it if someone could help me with this. I'm using vs.net 2003 and the pocketPC 2002 emulator that comes with it. I'm trying a very basic server client app - emulator app logs in and sends a couple of messages. Server responds with some text. I installed a loopback interface on the desktop(server) and set its ip to 10.10.10.10. I've bound a socket to that address and i ...Show All
Visual C++ warning C4996: 'foo' was declared deprecated
It appears that several standard C and C++ functions have been 'deprecated' in this version of compiler. This is a major annoyance since neither C nor C++ standards seem to mention this. Naturally, it is possible to disable unwanted warnings, however doing this manually for every project is a pain in the arse. Is there a compatibility mode Thanks, - NK This is a request for future versions of c and c++ ...Show All
SQL Server Suddenly breakpoints in custom component not hit...
Last week it worked fine: I execute my package containing custom dataflow component in debug mode and let it hit any preexecutetask breakpoint in the package debugger. Then I switch to my other Visual studio containing my custom component code and attach the debugger to the DTSDebugHost (Type = x86,managed) process, set a breakpoint in my C# code, resume executing of my package in the other environment again and voila, my C# breakpoint is h ...Show All
SQL Server Display a datagrid using the dataset as the source??
I am not sure how to display this in my report. I have dataset that queries the database to find a list of ingredients. I would like each ingredient listed in a grid. Under each individual ingredient is its amount, which is found from the database, using the Product and Ingredient name discussed above. The ingredient dataset has a list of ingredients. So I need the first one displayed in the first field, the second in the second field and so on. ...Show All
SQL Server Design T-SQL WHERE
Hi , I have following statement : SELECT * FROM Table WHERE Col1>=@Col1L AND Col1<=@Col1H AND Col2>=@Col2L AND Col2<=@Col2LH AND ... AND ColN>=@ColN L AND ColN<=@ColN H But sometimes variables e.g. @Col1L and @Col1H may cover whole range of available values so they will be there for nothing E.g. It may happen my query will be sufficient if I will have SELECT * FROM Table WHERE Col1>=@Col1L& ...Show All
