There is a function in vc++ dll.
void fun(unsigned int nchannel,int nFGHandle,void* i);
Now I want to call this dll in my c# code.
I am using like this,
[DllImport ("AVC.dll")]
public static extern void fun(UInt32 a,int b,ref void c );
So I want to ask
- Is there any need of marshling?
- how to use ref for void* i in c#
As far as I know, you use
IntPtrto marshalvoid *, however, if you need the return value, you can directly useout <type>and have several overloads, e.g.:etc.