Jamie
New member
- Joined
- Mar 23, 2004
- Messages
- 3
Hello, Ive got a problem...
When I use the following LIB call in VB6 it works fine...
******
Declare Function vxcomm_vb Lib "vxcomm.dll" (ByVal owner As Short, ByVal cmd As String, ByVal sys As String, ByVal app As String, ByVal crfs As String, ByVal port As Integer, ByVal config As Integer) As Integer
******
"Working fine" under VB6 means that the dll referenced above is called, and it does some work with a device on a com port, and it has its own GUI to show the progress of the connection to the device.
Im trying to move to .Net, so when I upgraded the project, the upgrade completed without error. The problem is, when I run the .Net upgraded version of the app, the dll is called successfully, but only for a split second. I can see the GUI of the dll on the screen for a millisecond, then it disappears. Further, the dll is designed to return an integer as you can see, at it does so, even though killed prematurely.
How do I get .Net to wait for the dll to finish its work?
When I use the following LIB call in VB6 it works fine...
******
Declare Function vxcomm_vb Lib "vxcomm.dll" (ByVal owner As Short, ByVal cmd As String, ByVal sys As String, ByVal app As String, ByVal crfs As String, ByVal port As Integer, ByVal config As Integer) As Integer
******
"Working fine" under VB6 means that the dll referenced above is called, and it does some work with a device on a com port, and it has its own GUI to show the progress of the connection to the device.
Im trying to move to .Net, so when I upgraded the project, the upgrade completed without error. The problem is, when I run the .Net upgraded version of the app, the dll is called successfully, but only for a split second. I can see the GUI of the dll on the screen for a millisecond, then it disappears. Further, the dll is designed to return an integer as you can see, at it does so, even though killed prematurely.
How do I get .Net to wait for the dll to finish its work?