VS2010 生成的托管C++DLL,byte* 对应C#啥
C++里面的其实是
explain_des(unsigned char *uartbuf_rx, unsigned char *buf_out, int len)
生成托管的DLL时候引用到C#项目,变成 了
explain_des(byte* uartbuf_rx, byte* buf_out, int len);
于是调用不知啥 调用
byte[] xx = new byte[];
IntPtr y = BytesToIntptr(xx);
IntPtr[] by = new IntPtr[1024];
byte[] xxx = new byte[1024];
myDES xxe = new myDES();
xxe.explain_des(y, by, xx.Length);
byte[],IntPtr都不行,都 提示无法转换成byte*