I have a C function with prototype, void* VoidPointer(void*); Now I need to marshal it in C#(using DllImport). But I do not know how to mention the parameters in C# code.
- static public extern WHAT_RETURN_TYPE VoidPointer( WHAT_PARAMETER_TYPE );
- How to make a call with the proper parameters in the C# code (SAMPLE USE)
I am new to C# and need to solve this asap ( in several attempts have got errors like this cannot convert from 'int' to 'System.IntPtr') Thanks.
IntPtr
is the managed version ofvoid*
– leppie