I have some C code which will be called from C# using P/Invoke. I have a C struct member for which I am trying to define an C# equivalent.
Array16 *data;
typedef unsigned char Array16[16];
How do I define the C# equivalent of this C data member?
Printable View
I have some C code which will be called from C# using P/Invoke. I have a C struct member for which I am trying to define an C# equivalent.
Array16 *data;
typedef unsigned char Array16[16];
How do I define the C# equivalent of this C data member?
Not sure about this one, try System.UIntPtr
CSharp uses the unsafe keyword as you know to allow you to use pointers. Unsafe code is very C-Like. This is done to allow inter-op with Win32 and other external C/C++ libraries and memory mapped devices. Other than that, you can make pointers to the built in types, that are also classes.
http://msdn.microsoft.com/en-us/libr...=vs.71%29.aspx
HTH,