Greetings!
I'm trying to call this method in a c# app...
SNAPIDLL_API int __stdcall SNAPI_SetCapabi litiesBuffer(HA NDLE
DeviceHandle, unsigned char *pData, long max_length);
So far I've got this:
[DllImport("Depe ndencies\\SNAPI .DLL")]
public static extern int SNAPI_SetVersio nBuffer(IntPtr DeviceHandle,
StringBuilder pData, long max_length);
Keep getting a PInvokeStackImb alance error and I think it's the 2nd paramter
pData because I've referenced the device handler and the long typedef is
pretty obvious.
For the 2nd paramter I've tried the following without success:
byte[]
char[]
string
StringBuilder
[MarshalAs(Unman agedType.AnsiBS tr)] string
HELP!
Thanks.
Dan.
I'm trying to call this method in a c# app...
SNAPIDLL_API int __stdcall SNAPI_SetCapabi litiesBuffer(HA NDLE
DeviceHandle, unsigned char *pData, long max_length);
So far I've got this:
[DllImport("Depe ndencies\\SNAPI .DLL")]
public static extern int SNAPI_SetVersio nBuffer(IntPtr DeviceHandle,
StringBuilder pData, long max_length);
Keep getting a PInvokeStackImb alance error and I think it's the 2nd paramter
pData because I've referenced the device handler and the long typedef is
pretty obvious.
For the 2nd paramter I've tried the following without success:
byte[]
char[]
string
StringBuilder
[MarshalAs(Unman agedType.AnsiBS tr)] string
HELP!
Thanks.
Dan.
Comment