# 2 Dessi's Q&A profile
Visual Basic First chance exceptions
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in AxInterop.MSWinsockLib.dll I get these in VS2005 A First Chance Exception doesn't necessariy mean that your code will not work or is bad code. In most cases, it is just a means of flagging a message up to the developer that an exceptional situation has occurred but that it was handled within the compilation process. Your code will still run. If there is subsequently an exception which wh ...Show All
Visual C# How to make a method in a windows service.
I made one windows service and i can control the OnStart, OnStop. example protected overwrite void OnStop() { //DO something } my real question is, how to make an own method in windows service and how do i send a string to it.. i would like it like this public string getPass(string tempUser) { string tempPass = ""; //do something do something, return tempPass; } anyone who knows where i can read about this stuff please contact me.. Then use a Socket, Remoting or other technique as i posted in my last post. For example, you create an Server Socket t ...Show All
Visual Basic manifest errors on application install.
ok i made a program and i was ready to start testing it on other computers. when i try to install it after i publish it i get this error failure: PLATFORM VERSION INFO Windows : 5.0.2195.262144 (Win32NT) Common Language Runtime : 2.0.50215.44 System.Deployment.dll : 2.0.50215.44 (beta2.050215-4400) mscorwks.dll : 2.0.50215.44 (beta2.050215-4400) dfdll.dll : 8.0.50215.44 (beta2.050215-4400) dfshim.dll : 2.0.50215.44 (beta2.050215-4400) SOURCES Deployment url : file://powervac/ivsprogs/SerialNumb ...Show All
Smart Device Development How to use DEBUGMSG macro?
Hi, What is the TRACE like method for Smartphone In debugging process I want ot put some message to Output window, is that DEBUGMSG macro is appropriate one In order to use that macro, what kind of header file I should include I included the dbgapi.h file, but it doesn't work. So how to use this kind of trace method Thanks. Well, there is nothing wrong with your code. The problem is that Windows CE OS seams to ignore the breakpoint exception when there is no debugger attached to the process. I see two option to solve this issue. a) Show a message box telling to attach the debugger to this proc ...Show All
Software Development for Windows Vista IMemberCreationService missing
I created a new Windows Application project today, added all references to the Workflow assemblies and then added a Sequential Workflow (code) to my project. Every time I open the designer I get: The service 'System.Workflow.ComponentModel.Design.IMemberCreationService' must be installed for this operation to succeed. Ensure that this service is available. at System.Workflow.ComponentModel.Design.NamePropertyDescriptor.SetValue(Object component, Object value) at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement) at System.Com ...Show All
Visual C++ Documentation for struct RUNTIME_FUNCTION
I have read the documentation in Visual Studio 2005 Beta 2 for this structure but have noticed that it is not complete. While it points out that the unwind info address must be a 32-bit offset, it doesn't say what it means when the offset is not to a 32-bit value. That is, if I run dumpbin /unwindinfo on C:/windows/system32/kernel32.dll, there are many entries that are not 32-bit aligned. So my question is, what do non-32-bit aligned unwind info offsets mean Bruce: sorry for the confusion: the x64 unwind info in pretty new to me as well. Here's a response I got from one of the linker team: ...Show All
Visual Studio Express Editions Visual C# Keeps asking for Registration
As of this moment I already have 2 "Thank you for registering Visual C# 2005 Express Edition!" e-mails in my inbox and just now, Visual C# asks again to register I'm OK with registering, but not if it keeps asking for it every day or two. What could be the problem Eric On further investigation, it appears that installs from the .img files do not require registration. ...Show All
Visual Studio Microsoft Document Explorer cannot be shown because the specified help collection 'ms-help://MS.MSDNQTR.v80.en' is invalid
I have installed a RC version of VS Team Suite along with full MSDN installation. After completing installation, I'v got " Microsoft Document Explorer cannot be shown because the specified help collection 'ms-help://MS.MSDNQTR.v80.en' is invalid " error when I have tried to access it by doing "Start" -> "All Programs" -> "Microsoft Developer Network" -> "MSDN Library for Visual Studio 2005" When I accessed it from VS 2005, it only have SQL help available. I have tried to reinstall it several time but no luck. Any help would be appreciated. Eric I have the same results as Pieter, n ...Show All
Visual Studio Checkout / Checkin using Label ...
Hi .. I am using SourceSafe Version 6.0 (build 8163) I have a script that I am using to get files using a LABEL and then do the build. Part of the script will checkout the version.h (using the LABEL) and then update the build version information and then checkin the version.h. When I use the LABEL to do the checkout I get the following error message: Version.h is pinned to an older version. Unpin this file or perform a rollback before attempting to check it out. Using SourceSafe - It does not seem that Version.h is pinned. I have attempted to add the UNPIN command before I do the checkout and it returns this error m ...Show All
Visual Studio Designer and File Associations
Whenever i start a new DSL project i have an option of giving the extension and registering an extension. I copy a new project from a friend and this project has the same extension too. Once i launch the designer and try to add a new item of that extension there seems to be a problem. Is it openning up a file of my old project with the same extension How do these file associations work Can i run multiple versions of the same project in the same machine and when i launch the designer for each version and create a new file will the corresponding version's file get added I am all confused :) Hi, DSL designers are registered as ed ...Show All
Windows Forms Installation Failure
Hi, When I try to install the source code I am getting the following errror. WindowsNT or User Group 'machine name-\ASPNET' not found. Check the name and try again Changed database context to TaskVision Granted database access to 'machine-name\ASPNET' I am installing to XP Pro with .NET Framework 1.0, SQL Server and IIS are running, the database context is set to local&nb ...Show All
Visual Basic Add text to a text box from a module
I'm upgrading a program I wrote in VB6 to VB2005 and am having a problem with updating a text box. I have a module that manages serial port communications. When data is received in the serial port buffer, it should update a text box (txtSerialIn) on a form (frmSerialInOut). Here's the code: Public Sub Handler( ByVal strInMessage As String ) frmSerialInOut.txtSerialIn.Text = strRXData & vbCrLf & frmSerialInOut.txtSerialIn.Text End Sub The text box is not updating with the text that the variable strRXData contains (checked!). This worked fine in VB6. Any help would be appreciated. Thanks. ...Show All
Windows Forms System.IO.File / FileStream
Hello everyone :) I'm a new guy here, and somewhat new to the .NET programming framework. I'm working in C# (not my languages of choice, but my company is asking me to use it to work with everyone else we just hired) So I guess this is my first question........could someone point me to an example of how to use the System.IO.File and S ...Show All
SQL Server Empty date tag causing date to be set as 01-01-1900 qwhen inserting into a table using openxml
I am inserting into a table using openxml as follows SET @dynamic_sql = N'INSERT INTO ' + @table_name + ' SELECT * FROM OPENXML (@xml_data_doc_se, ''//' + @node_name + ''', 2) WITH ' + @table_name; &n ...Show All
Visual Basic Richtextbox question
i have textbox1 and richtextbox1 and button1, i put text in textbox1, press button1 and then i want it to add the text thats in textbox1 to the richtextbox, but i want it to add to the next free line so say if i had some text on the first line of the richtextbox1, i would want the next line of writing to start on the 2nd line and so forth and so on Any replies would be appreciated Hi, If (RichTextBox1.Text = "" ) Then RichTextBox1.Text += TextBox1.Text Else RichTextBox1.Text += vbCrLf + TextBox1.Text End If ...Show All
