阿里P7移动互联网架构师进阶视频(每日更新中)免费学习请点击:https://space.bilibili.com/474380680
Struct需要在C#里重新定义一个Struct
CallBack回调函数 需要封装在一个委托里,delegate static extern int FunCallBack(string str);
unsigned char ppImage** 替换成 IntPtr ppImage
int& nWidth 替换成 ref int nWidth
int, int&, 则都可用 ref int 对应
双针指类型参数,可以用 ref IntPtr
函数指针使用c++: typedef double (fun_type1)(double); 对应 c#:public delegate double fun_type1(double);
char* 的操作c++: char* 对应 c#: StringBuilder
c#中使用指针:在需要使用指针的地方 加 unsafe
unsigned char对应public byte
调用方式为
原文链接:https://blog.csdn.net/humanking7/article/details/50981922
阿里P7移动互联网架构师进阶视频(每日更新中)免费学习请点击:https://space.bilibili.com/474380680
原文:https://www.cnblogs.com/Android-Alvin/p/12109556.html