R
rocio
I have a DLL function with this signature:
CamOpen (HANDLE* phcam)
I wrote its declaration in VB.NET the following way:
Declare Function CamOpen Lib "veocamampi.dll" (ByVal phCam as
IntPtr)
And I'm calling it with this statement:
Dim hCam as IntPtr
Try
CamOpen (hCam)
catch ex as Exception
.......
end try
The exception I get is: "Bad arguments or incorrect declaration in CamOpen"
Now, notice that the original DLL declaration declares phcam as a pointer to
HANDLE........am I missing something here?
What type of marshaling do I need to do here?
tx in advance!
CamOpen (HANDLE* phcam)
I wrote its declaration in VB.NET the following way:
Declare Function CamOpen Lib "veocamampi.dll" (ByVal phCam as
IntPtr)
And I'm calling it with this statement:
Dim hCam as IntPtr
Try
CamOpen (hCam)
catch ex as Exception
.......
end try
The exception I get is: "Bad arguments or incorrect declaration in CamOpen"
Now, notice that the original DLL declaration declares phcam as a pointer to
HANDLE........am I missing something here?
What type of marshaling do I need to do here?
tx in advance!