S
Stuart
Ok
let me explain: I am writing a c# program that calls into
an unmanaged C++ third-party DLL. I have to make a number
of calls and for simplification the protype I am calling
is:
bool fn(int *pResult);
This result is used by other subsequent functions that I
have to call.
Q: Is it possible to call this function from C# declaring
a variable that is a pointer which can be used later on to
pass as an (int *)?
I have done it using the <unsafe> declaration, but our
*architecture* team dont like it. I have tried with the
Reflection.Pointers and also __makeref(), but these dont
give me what I need.
Anyone got any ideas!
Thanks in anticipation
Stu
let me explain: I am writing a c# program that calls into
an unmanaged C++ third-party DLL. I have to make a number
of calls and for simplification the protype I am calling
is:
bool fn(int *pResult);
This result is used by other subsequent functions that I
have to call.
Q: Is it possible to call this function from C# declaring
a variable that is a pointer which can be used later on to
pass as an (int *)?
I have done it using the <unsafe> declaration, but our
*architecture* team dont like it. I have tried with the
Reflection.Pointers and also __makeref(), but these dont
give me what I need.
Anyone got any ideas!
Thanks in anticipation
Stu