P
Peter
Hi,
I got a function in third party dll which its C++ declaration is like
this:
int __stdcall function1(const unsigned char *c1, int w, int h,
datatype *d1, int *n, int r = 0, const datatype2 *d2 = NULL, bool b1 =
false, bool b2 = true, char c = 0);
where datatype1 and datatype2 is another data structure I have
declared also.
I would like to convert it to C# by dllimport however I have tried so
many times and it won't work.
I think the problem maybe conversion of "const unsigned char *" to c#
equivalent, now I convert it to a IntPtr.
Or it is anything I need to consider for "const" parameter and
parameter with default value?
Thanks in advance.
Peter
I got a function in third party dll which its C++ declaration is like
this:
int __stdcall function1(const unsigned char *c1, int w, int h,
datatype *d1, int *n, int r = 0, const datatype2 *d2 = NULL, bool b1 =
false, bool b2 = true, char c = 0);
where datatype1 and datatype2 is another data structure I have
declared also.
I would like to convert it to C# by dllimport however I have tried so
many times and it won't work.
I think the problem maybe conversion of "const unsigned char *" to c#
equivalent, now I convert it to a IntPtr.
Or it is anything I need to consider for "const" parameter and
parameter with default value?
Thanks in advance.
Peter