Bob_Sullivan's Q&A profile
Visual Basic MSComm32.ocx in VB.Net problem
Hi everyone. A while ago I wrote a library which helps me simply text operations, serial communications, PLC interaction using OPC Automation, etc... My problem is with the vb6 serial control mscomm32.ocx. In my computer, I can use it with no problem. Everything works fine when testing serial control and my forms can open sucessfully. When I try to run a winform that uses Serial library (mscomm32.ocx) in a computer that doesn't have VB6 installed, I get the error "Common Language Runtime Debugging Services. Application has generated an exception that could not be handled. PRocess id=0xe0 (224). Thread id= 0x6f4 (1780)" I started ...Show All
Visual C# handling exceptions .
you know when you do a try catch .. and you catch an exception... what do the developpers do with the exception basically what is the use of try/catch i know its for catching an exception .. but what do developpers do with it usually Thanks, I use it to catch any error i feel i might have missed. itz for like saftey puposes for me. If u get an exception while running my program i go fix that problem. I leave the try-catch just incase a user finds the error that i might not have seen. ...Show All
Visual C++ conditional compilation; Intellisense doesnt seem to be working
Dear All. I am using VC 2005, writing a chunk of code like this... #ifdef USE_LICENSING #include<file1.h> code... code.. #endif the editor grays out the code between then ifdef and endif tags, I can use features like intellisense only if i comment out ifdef and endif tags.. anyone aware of this Satish Boston,MA. I agree that I.S. takes way too long to populate its database and I've found it to not be completely reliable in more complex scenarios. This is what I've tried: #if 0 void FOO(int x,int y) {} #define FOO(x) (x+1) #else #define FOO(y) (y+2) #endif int _tmain( int argc, _TCHAR* argv[]) { // After you wa ...Show All
Visual Basic Making a Database
Hi i was wondering if there are any tutorials around on creating databases in vb6 and vb.net Yes, there are tons of them. However, do you want to create the actual database, or do you just want to connect to it ADOX will create .mdb files, and if you have a SQL database installed, you can use ADO.NET to run the SQL that creates a database. You should probably search the web for a question like this, www.codeproject.com would be one place that certainly has tutorials on this stuff, although not in VB6. VB6 is pretty much dead, if you're learning, I would not bother with it. ...Show All
.NET Development Problem with CodeCommentStatement in CodeDOM ?
Hai ......, I 'm using the following method to add xml code comments to my method. method.Comments.Add( new CodeCommentStatement ( "<summary>" , true )); method.Comments.Add( new CodeCommentStatement ( "This method is used to add a new " + table.Name + " information" , true )); method.Comments.Add( new CodeCommentStatement ( "</summary>" , true )); method.Comments.Add( new CodeCommentStatement ( @"<param name=""" + parameterName + @""">The information to be used to add new " + table.Name + "</param>" )); & ...Show All
Software Development for Windows Vista Vista backward compatibility
Hi, is MS Vista supposed to be backward compatible with the other MS win32 operating systems I mean, if I have an application running on MS Windows XP, can it run on Vista as well thanks. Yes. Applications that run on Windows XP should also run on Windows Vista. Microsoft spends a lot of time on application compatibility between Windows versions. If you encounter an application that is incompatible, you should submit a bug via the Longhorn Beta program. ...Show All
Visual Studio Tools for Office Question about "Toolbar Button Face" in "PasteFace()" ?
I'm going to add a custom toobar button to word, using "PasteFace()" in VBA. According to http://support.microsoft.com/kb/288771/en-us , I used "Toolbar Button Face" and "Toolbar Button Mask" clipboard format to transfer transparent button icon. But this is not right if the office is not English version. The clipboard format name "Toolbar Button Face" should be localized. If I use "Toolbar Button Face" and "Toolbar Button Mask" as clipboard format name on Chinese Version Office, the icon could not be pasted to transparent icon. I found out that the localized infomation is in t ...Show All
.NET Development using parameters in the configuration wizard in vb.net?
Hi, I have a question regarding how to congure parameters in the configuration wizard instead of writing code in the code behind page in vb.net. I have configured and designed the dataadapter, theconnection, the dataset using the configuration wizards, just to avoid writing code. I have a combobox populated with some values. I need to select a value from it during run time. Now, I have to insert this selected value into an empty column in a different table in my dataset during runtime. I know, I could use the parameters. But as I said, I want to configure the parameters collectioin using the configuration wizard instead of writing code. D ...Show All
Visual Studio Express Editions Adding a second form
In NET 2003, I read this instruction in a book: "Visual Basic .NET requires that you specifically declare a variable of the form's type before you use a second form." Assuming two forms frmMain and frmHelp, I would do this in frmMain: Dim frmHelp As New frmHelp frmHelp.ShowDialog() But in NET 2005 (Express) it seems to work without the Dim: frmHelp.ShowDialog() Has the requirement changed Hi Visual Basic 2005 now supports shared forms which means that you can reference a form without having to first instantiate a new instance of it. You can also access your forms v ...Show All
Visual Studio Team System Unable to get CoverageInfo from a .coverage file
Hi, I'm trying to get the CoverageInfo from a .coverage file. But when I use CoverageInfoManager .CreateInfoFromFile(filename), I get a ErrorLoading symbols error (error as shown below). Can someone help ! Cheers, Jp Error description - ****************************************************** Microsoft.VisualStudio.CodeCoverage.CoverageCreateException was unhandled Message="Error when creating coverage info: Error loading symbols" Source="Microsoft.VisualStudio.Coverage.Analysis" ErrorType="cc.err.symbolload" StackTrace: at Microsoft.VisualStudio.CodeCoverage.CoverageInfoManage ...Show All
SQL Server Reporting Services using IBM DB2 Data Provider for .NET framework 2.0
Hello, I have been testing the IBM DB2 .NET data provider the last couple of months with the intention too use it with Reporting Services. I am using the IBM DB2 Data Provider for .NET framework 2.0. Everything seems too work fine until I started too test the Cashing and Scheduling of reports in Reporting Services. Too be able too cash or too schedule reports in Reporting Services you have too set the "Credientials stored securely in the report server". The problem is when I do this with the Data Connection using the IBM .Net Provider I get an error Message: "The data source 'XXXX' uses a managed data provider which does n ...Show All
Windows Forms a datagridview and combobox problem
I am using VS 2005 Professional. I have a master-detail form on which I have a datagridview(detail) that is bound to a table. Within that grid, one of the columns displays values from another table using a combobox. Under normal circumstances this all works quite well. However, if you go to the new record at the bottom of the grid and click the down arrow of the combobox the autonumber field populates, as it should, and the master key value is also automatically entered in it's field, as it should be. The problem is that if the user decides not to select a value from the combobox at this point, and they try to delete t ...Show All
.NET Development SQL UPDATE - "No value given for one or more required parameters"
I've used this structure in several other C# database programs with success, until this app. Now I'm receiving this: "No value given for one or more required parameters." The key is SAMS_ID. The data is text, no numeric fields. The code I used is below. I've tried removing the single quotes from around the date field and also from around any fields that contain numbers but still receive the same error. Anyone know what I am forgetting private void buttonEdit_Click ( object sender , System . EventArgs e ) { string strEditConnect = "" ; if ( buttonEdit . ...Show All
Smart Device Development Pocket PC Alaram Application
Hi, Basically i am working on an application for todolist.so in this application i need to add the functionality of the alarm.i am using C# to do all this.so any one can tell me how to make an alaram application I'm not doing your homework for you, here's a link about timers... http://msdn.microsoft.com/msdnmag/issues/04/02/TimersinNET/default.aspx ...Show All
Visual FoxPro Zip Folder
Dear Experts, How I zip the folder using FoxPro Thanks a lots. I am using libraries from this site : http://www.eetasoft.ee/zipmaster.htm ...Show All
