Hi,
Just a quick update.
I have tried what you pointed out by changing the following:
Public Declare Function rgetdat_bits Lib "hscnetapi.dll" Alias "rgetdat_bits_vb" (ByVal Server As String, ByVal num_points As Short, <[In](), [Out]()> ByVal getdat_bits_data() As rgetdat_bits_data_str) As...
The only 2 things that I have added to the unmanage declarations is :
- "Convert.ToInt16" for 16-Bit Integer compatibility, which do not seems to solve this issue.
- Marshalled the ServerName to fixed length 255 characters , which do not seems to solve this issue.
Just so you know, a lot of...
The reason why I used Short is to have the Integer 16-Bit compatibility that the API requires. I believe I could use int16 intead or try to pass 32-Bit Integer and see what happens.
Here is the VB6 code as per your request:
HSCNAPI.bas :
Public Declare Function rgetdat_bits Lib...
Hi,
I migrated a VB6 ActiveX to Vb.Net and I am having an issue on API Calls.
The ActiveX consist of making API calls to read or write data from flat files.
It works pretty well in VB6, but throws an exception in Vb.Net : AccessViolationException
Let me know if you want me to post the working...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.