VS2010 生成的托管C++DLL,byte* 对应C#啥

cow8063 cow8063 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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*
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
cow8063
C# 111,129 成员 642,539 内容