Hi
I know this issue have been here before, but im struggeling with my problem.
Im trying to import an unmanaged DLL from C to C#.
From the headerfile i have the following declaration:
extern "C"_declspec(dllexport)
long _stdcall TCatIoGetInputPtr( unsigned short nPort, void** ppInput, int nSize );
with the following variable description:
ppInp:
Address of the pointer to get the address of the output buffer. If TCatIoGetInputPtr succeeds, the pointer is initialized to the address of the input buffer.
I thought i could use something like:
[DllImport("TCatIoDrv.dll", SetLastError = true)]
public static extern int TCatIoGetInputPtr(ushort nPort, byte [] ppInput,
int nSize);
But it doesnt seem to work.
Any one who could help ?
Thanks,
Nikolaj