Shadow Chaser's Q&A profile
.NET Development Help to get a solid UpdateCommand for DataSet
I have a small amount of experience working with writing UpdateCommands for SQL changes, but none of them have involved working with datasets - just passing variables to a datasource parameters in Stored Procedures and having WHERE clauses update them. However, I'm now working with DataSets, and I'm stumped on how to write changes made to the Dataset to the database, and was hoping someone could give me some demo code, or point me in the right direction - "Write Dataset Changes" didn't give me a lot of help on Google. In the past, I've had this ADO project connected to an MSAccess database, which apparently handles updates and del ...Show All
Visual C++ Using classes from dynamically linked DLL
I am attempting to use classes that are defined in my custom written DLLs. I am dynamically loading the DLLs using LoadLibrary. I already know how to access functions using GetProcAddress. Is it possible to do something similar for classes No! You can not use class exports via this way with LoadLibrary. A simple approach is to create interfaces like COM interfaces and return only pointers to those interfaces from the DLL. This is alaso a very flexible aproach and you hide the implementation details fully. ...Show All
Windows Forms GDI handles leaks in Form class
Hi, I develop my own controls derived from the Form class (for some reasons I need to derived from the Form) and I found that my controls cause GDI handles leaks. I searched for the problem and found that the leaks are caused by calling “PointToScreen” function. The problem may be very, very easily reproduced at the example by the following code: ...Show All
Visual Studio Team System Publishing unit test results without TFS
Hi, I want to publish some unit test results to a system testing team without the use of TFS. I've recently moved over from a java project were all junit test results were published to system test in a junit report. This is idea for my organisation. Here the system test team are totally separated from development so TFS is not an option, and they will only accept code into system test if similar junit style unit test reports can be provided ! I really don't want to have to use NAnt and NUnit2Report, so am hoping there’s another option... Well, there is nothing today, and I dont think we have any plans ...Show All
Visual C# Insert OLE Object into Access database
I need to insert an mathematical equation into an access database where i've created an OLE Object type field. A mathematical question may contain "math equations" inside it. I've created morethan 10,000 of such questions with the help of Microsoft Word & Microsoft Equation 3.0. Now I want to store this questions into an access database table, so that i can retrieve the questions through C# randomly from the table. I've decided to make a field as OLE Object type and then i'll insert the equations programmatically from C#. But I don't know the actual code. If there is any alternative solution, please let me know. I ...Show All
Visual Studio Team System Again Load Test - actually Multi User test
Hi I am not a developer therefore I am trying to get everything I can, without adding lines to the code. Let's see if it is possible. :) I've read the blogs: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=122964&SiteID=1 and http://forums.microsoft.com/msdn/showpost.aspx postid=118191&siteid=1 but still there is something that I don't understand. Therefore, I restart with basic questions: Can I use this tool to run a multiuser test and not a Load test What's the difference The difference is that I need to know exactly when a test starts, when it ends, and control the number of times to make ...Show All
Visual FoxPro Using Browse command in VFP9
I used FPW2.6 untill a month ago , since then I convert most of my old programs to VFP9 , all is working fine except one major problem I have , the Browse command is not working in an stand alone EXE program , I know I can use the grid option but still the browse command was an easy way to display records in a file, is there a way to use the browse command in an EXE file Thank's for help No. A simple: browse or browse < browse clauses here > work for me very well (though I only use browse for debugging purposes). BTW to display records at runtime you could still use a grid instead of a browse. ie: * A ...Show All
SQL Server XMLA Queries in Execute SQL Task
I have a very simple SSIS package with one connection and one Execute SQL Task. The connection is a Native OLE DB\ for Analysis Services 9.0 The execute SQL task fires off this XMLA query created through the syncronize database wizard from MSAS2005. All I want to do is dynmaicaly replace the Source on the connection String in this script to a local variable. I have tried the @variable and the syntax as I found some good info in BOL. However neither of these work. I supposed I could use scripting to handle this but I didn't want to add that layer and feel that SSIS should be able to handle this. Here is the raw script which wor ...Show All
Windows Forms Anyone know a free tree control that allows you to set node images?
Hi, Has anyone come across a free windows forms tree control that allows you to set images on a per node basis Thanks, Alex Oh duh! for some reason I thought you couldnt do that. Thanks Mick. Alex ...Show All
.NET Development first e/r or classes
Can I make my E/R and then generate my classes Do you know a tool that generates this for me Hello thanks for your answer it has been the most complete until now. Can we talk by messenger, If so pleasee add me luise.valencia at gmail dot com. I saw that you used Icollection, i didnt know that it even existed, do you know any tutorial for designing good classes in c#. I know now that I must make first my class diagram and then I must translate it to my e/r model. Thanks again. I hope I can talk to you directly. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Books on DirectX
I am getting into learning about game development. Well more of programming in the directx API for starters. I was wondering if getting into the .Net part is better or should one stick with the C++ and unmanaged directx programming. The other question is, to look into WGF2.0 or start with current gen directx. Any books that I should/must have for learning about directx. And does that cover the upcoming Dirextx10/WGF2 Thanks My personal opinion about books is to get a book that covers theory rather a specific implementation of a API. It's nice to get a book with some code samples but in a few y ...Show All
SQL Server Scheduled updates with SQL Express
Hi We have merge replication - anonymous internet subscribers With SQL Express as the subscriber database, how do we periodically run the merge agent - without SQLAgent we can't schedule the job... Obviously with MSDE it was no problem thanks Bruce Yes there is no agent jobs in SQL Express. On the client side you can call the agent periodically using your own program logic, from command line or the ActiveX control. Here is a link on programing the SQL Merge ActiveX control: http://msdn2.microsoft.com/en-us/library/ms146926.aspx ...Show All
Visual Studio Express Editions A newbie's question on localization
I tried to created a localizable click once application. It finally worked out with double resx files (one for greek one for english and a default). The runtime seems to be able to see the correct language from the resource files. But I cannot access them programmatically. I try to do the following: ResourceManager resources = new ResourceManager("TecGoblinUtilities", System.Reflection.Assembly.GetExecutingAssembly()); this.btExec.Text = resources.GetString("btExec.Text"); (I want a button to have its text changed depending on the current mode) Well, I get a MissingManifestRe ...Show All
SQL Server Chart not reflecting new Dataset Changes
I changed the stord proc behind my dataset in my report to bring in less data however my report when previewed and refreshed is not reflecting this. What could be causing this When I run the dataset in the data tab, it looks right. Have you tried refreshing the fields In the data tab, click on the refresh fields icon (a small white rectangle with green arrows). ...Show All
SQL Server Registry to store configuration values ?
I try to store a SSIS-configuration value in the registry. But it's failed. I get a warning, that the registry-key is not found. What is the syntax I have searched in BO,MSDN and Google/Internet ==> nothing. There is no example. In the registry you have this entry: HKEY_LOCAL_MACHINE\SOFTWARE\ProjectName\Connections\ConnectionString1\value In Value you store your connection string In the SSIS-Configuration the reference is: SOFTWARE\ProjectName\Connections\ConnectionString1 Loom ...Show All
