原文:http://hawksharp.blog.sohu.com/163328352.html
我的DLL库用的是__cdecl (/Gd)方法生成的,所以在C#中也采用cdecl方法
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
public delegate void MsgHandler(int nDetectorID, int nEventID
原文:http://hawksharp.blog.sohu.com/163328352.html
我的DLL库用的是__cdecl (/Gd)方法生成的,所以在C#中也采用cdecl方法
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
public delegate void MsgHandler(int nDetectorID, int nEventID