学习C与C++他们之间的数据类型和数据类型转换方式你知道吗?( 三 )

C与C++

C与C++

C与C++

C与C++

C与C++

Win32 Types —- CLR Type

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

推荐阅读