M
Mr.Tickle
Hi,
I have a C function in a DLL that takes a void* that is passing back some
other type, what is the general way to do this with object rather than
declaring the actual type that its returning.
ATM I am using the function that has the following signiture
long someFn(long l, void* data);
I am calling it in C# as follows...
[DllImport("someDll.dll", EntryPoint="someFn"]
public static extern int someFn(int l, ref double);
double d = 0.0;
int l = someFn(10, ref d);
Is there a way I can call it with the following type reference pased in?
object obj;
someFn(10, ref obj);
I have a C function in a DLL that takes a void* that is passing back some
other type, what is the general way to do this with object rather than
declaring the actual type that its returning.
ATM I am using the function that has the following signiture
long someFn(long l, void* data);
I am calling it in C# as follows...
[DllImport("someDll.dll", EntryPoint="someFn"]
public static extern int someFn(int l, ref double);
double d = 0.0;
int l = someFn(10, ref d);
Is there a way I can call it with the following type reference pased in?
object obj;
someFn(10, ref obj);