C++ API 翻译成c#
typedef int (__stdcall *TwVideoStreamCallback)(int nChannel, VOID *DataBuf, int width, int height, BOOL bField2, void *context, __int64 pts);
TW68XX_API BOOL __stdcall TwRegisterVideoStreamCallback(TwVideoStreamCallback VideoStreamCallback, VOID *Context);
这个怎么翻译成c#,在线等 --------------------编程问答-------------------- 别沉! --------------------编程问答-------------------- 别沉! --------------------编程问答-------------------- 有木有人玩c++的 --------------------编程问答-------------------- p/invoke……蛋疼
delegate int TwVideoStreamCallback(int nChannel, IntPtr DataBuf, int width, int height, bool bField2, IntPtr context, Int64 pts);
bool TwRegisterVideoStreamCallback(TwVideoStreamCallback VideoStreamCallback, IntPtr Context);
试试看吧……
--------------------编程问答--------------------
给个链接,自己写对应的参数类型
http://blog.csdn.net/sunboyljp/article/details/5110639
补充:.NET技术 , C#