Hello,
I want to call a DLL function that will return me a device handle, but i'm
having problems with the argument type.
The C Header file has this declarations:
typedef void *FT_HANDLE;
int M_createC(OUT FT_HANDLE *ftCont);
In Visual Basic I did this:
Public Declare Function M_createC Lib "myLib.dll" ( _
ByRef ftContext As Any) As Long
sub temp()
Dim rc As Long
Dim g_Context As Long
rc = M_createC(g_Context) <-- The Error is: "Bad DLL calling convention"
End Sub
Can you help me with this ? How can I call this DLL function ?
Thanks in advance
Pedro Neves