Ed Hintz's Q&A profile
.NET Development how many parameters could oledbcommand has ?
I've found that for using .net framework 1.1(sp2), with oledbcommand, I can't add more than 720 parameters. Is there any offical document for the limitation of parameters count of oledbcommand in .net framework 1.1 / 2.0 Or how about other command class such sqlcommand, oraclecommand etc I am doing this (add so many parameters to oledbcommand) for trying batch inserting data into oracle using the sql such as "insert into mytable select , , ...... from dual union all select , , ... from dual ..." I wish to limit the size of sql to no longer than 16K (too long would lead to bad performance), but at first, I found that with too many parameters added to oledbcommand I got ...Show All
Visual Studio Express Editions Getting original settings
Hello, I have problems trying to get to the original settings of Visual Express 2005. I normally use: tool->Import and Export settings and then use reset or import original settings. I thought this would fix the problem, but not.. I obtain the same settings and not the original ones. Would it be possible that the original settings of visual express 2005 are corrupted by my own settings Where can I find original ones I just want everything new, as it was when I installed visual express the first time... thanks for your help cesar I know that Visual studio stores the current settings in "My Documents\Visual Studio 2005\Settings\C++ Express\current settings.vssettings" I tried deleting this to ...Show All
Visual Studio Team System Synchronizing workitems with 3rd-party defect tracker?
Hello, my previous post on date-time queries was reall part of a bigger picture. I'd like to use TFS workitems as my 'master' issue tracker, but I want to mirror the workitems to another defect tracker. (Initially, in a read-only fashion). I'd like the synchronization to be 'real-time', or at least quick (within minutes). * One solution would be to have TFS raise a flag (and have the other app whatching the flag) or itself trigger the synching program whenever a workitem is saved. * Another solution would be to have an agent frequently polling TFS for changes, asking "has any workitem been saved since last time I checked ". Will TFS support any of these methods Any suggestions are welcome. thanks, /Tomas ...Show All
.NET Development Substring with regex??
This is a simple stripping MyString.substring(1,150); but I want to strip the first 150 chars and also any of the following characters if found in the first 150 chars: HTML tags carriage returns line feeds tabs Can this be done using regex and substring or just regex How can this be done try this Regex reg = new Regex ( @"(<[^>]+>|\t|\n|\r)" ); str = reg.Replace(str, "" ); Depends you want to get certain number of characters BEFORE or AFTER replacement, use substring accordingly. Note the above expression eliminates <!CDATA[ ]]> sections as well, and if it's not a HTML doc but some string like "this is some ordinary < string >", ...Show All
.NET Development Handle simultaneous access to database
I am making an application which will be running on serval pcs and access same database simultaneously. It makes more than one database access at a time on any single pc. I need one of the access thread to get data from a data resouce and write the new data into the database to replace the old one. when this thread is getting and writing data to my database for an item, other threads accessing that item must wait till it finishes writing. The accessing threads are generated at runtime and the number of them is vary from time to time. The pcs do not have knowledge to each other and there isn't any other machine or application working as a center to control the database access. The pcs probably will work on the same network. but, th ...Show All
Windows Forms RichTextBox help needed!
Hello, I am writing a fully featured text editor. How can I code this: When the user clicks Save, it saves any changes to the current open file. If the file has not been saved yet, it launches the Save As code. Also, when the program exits, how can I make the program check if there are any unsaved changes, and ask the user if he/she would like to save the file. Matt Your code should probably look something like this... ------------------- bool documentSaved = false; public void Save() { // you write code to save the file here if(documentSaved) // launch Save dialog else // launch SaveAs dialog // you now set the 'Modified' property // on ...Show All
Visual Studio 2008 (Pre-release) SvcUtil in June CTP is outputting userPrincipalName element in app.config
In Beta2, the visual studio 'Add Service Reference' when pointed to a wcf service created following information in the app.config file: <configuration> <system.serviceModel> <client> <endpoint address="http://machinename/WCFService/Service.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_MyContract22" contract="WCFServiceClient.MyService.MyContract2" name="WSHttpBinding_MyContract2"> </endpoint> </client> </system.serviceModel> </configuration> In June CTP, it changed to following: <configuration> <system.serviceModel> <client> <endpoint address=" ...Show All
Software Development for Windows Vista ASP.NET - how to use WWF
Can anyone provide me with some guidance here, Totally new to WWF and was seeking some advice on the following: How do you call a Workflow App from an ASP.NET app E.g. On a button click on an ASP.NET form, how do you fire up a workflow at that point, passing in some data and then leaving the workflow to do its bit Just a conceptual view would be great for me, or- any examples in VB please. Thnx You have a couple of options - Take a look at these samples: http://wf.netfx3.com/files/folders/technology/entry841.aspx http://blogs.msdn.com/tomlake/default.aspx http://wf.netfx3.com/files/folders/rules_samples/entry8431.aspx Thanks, Kushal. ...Show All
Windows Live Developer Forums Terms of use?
I have been going around and I am sleepy so forgive me, but where can I find the terms of use of the Windows Live search API, I have gone and created a script using PHP and I thinK it has some cool options, however I dont want to break terms of use, so I better read them! Also how much on average would fifty thousand queries cost ^Yours most, Daniel! Non-commercial usage agreement terms is here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/MSN_Search_Web_Service_SDK/HTML/AccessingTheMSNSearchWebServiceSOAP_API.asp ...Show All
Game Technologies: DirectX, XNA, XACT, etc. if (XNA < DirectX) { drool; } .... DirectX or XNA?
I have been wanting to develop a game for a while now, and I am finally getting all my technologies together. Basically, I want to create a simple RTS that models that of starcraft because I am a major fan of that game. The problem is, I can not seem to decide if XNA will be able to do what I want it to do, or will I have to move to DX9c. I want to have multiplayer support as 1 of my big things, since the best thing about Starcraft is it's multiplayer, and I see that XNA does not have support for that sort of thing and certainly not an easy way to implement it. If you have any suggestions I would appreciate them, thanks. PS: My C++ skills are absolutely terrible, so I would probably have to learn C++ to use DX9c unless you can ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar first run
Being a complete newbie to all of this C# and XNA i loaded up spacewar click on build then installed the project. Then i ran it and a error window popped up, details said something about a missing something or file not found, i sent a report to MS from the window that popped up. I can see im going to have to buy a C# for dummys book cause im totaly lost as to what to do first... You can open the executible in the debug/bin folder under the project. If you want to install it on some other machine, then you will need the contents of that folder and the contents of the "Contents" folder (where all the imags and textures are stored). The game expects the Contents folder to be several directories abo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX Or OpenGL?
Why DirectX Is Better Than Open GL It's a big debate, but you can pretty much sum it into this. For those who develop games on the Windows platform, Microsoft suggested those developers to use DirectX, and so they did. That's it. There's some great benefits to this such as full integration with the Windows platform, tons of money was put into the top software engineers to give you a excellent standard, and the overwhelming amount of classes used for loading in textures, a standard model to load in, matrix math functions, etc. With OpenGL you have none of that unless you use it for another platform which actually would have its own support team and helper classes. All in all, simply use what the platform suggests or you're going to re ...Show All
Visual Basic Version control
Hi, when I build and publish a VB.net 2005 program, the version number is incremented automatically - is this held in a variable anywhere that I can use to display within my application Check out the following My.Application.Deployment Namespace http://msdn2.microsoft.com/en-gb/library/dzt1y5bx.aspx More specifically the currentversion property which will give you the clickonce publish version number ...Show All
Visual Basic Null Reference Exception
I am having a problem with a multi-form application I am writing in VB .Net 2003. When I transition back from one form to my startup form, I get an intermittent Null Reference Exception. Sometimes it will work, moving back and forth from form to form with no problems for 15-20 minutes, and sometimes it will crash everytime. I have tried putting a try-catch block around the instantiation of the main form. It does not catch anything. The exception points to line 2 of the startup form, which reads: Public Class frmWelcome Not much to cause a problem there, I would have thought. I am attaching the code for bringing up the welcome screen in hopes that someone will see something I am not thinking of. Try Dim welcome As New frm ...Show All
Windows Forms setting excel column width to auto fit
I'm creating an excel spreadsheet from a vb.net program, and the values I pushing into the cells of the spreadsheet are coming out of a sql server database, so I don't know how large each record will be. I want to tell the excel worksheet to auto fit the size of each column to the width of the text pulled out of the database. Does anyone know how I can do this I tried: dim ws as excel.worksheet dim cell1 as excel.range = ws.range("A1") cell1.cells.value = some text from database ws.range(:"A:A").autofit() but I always get an "autofit method of range class failed" exception can anyone help me with this thanks, smtraber These VC++ code possibility is useful for you. lpDisp = she ...Show All
