111,129
社区成员
发帖
与我相关
我的任务
分享
c++中申明原型:
external "C" __declspec(dllexport) BOOL InitializeModule(LPCWSTR lpBuffer);
c#中的申明:
[DllImport("ItsnDLL1.dll")]
public static extern bool InitializeModule(string lpBuffer);
c#中调用:
bool Result = SnDll.InitializeModule("test.dll");
[DllImport("ItsnDLL1.dll", EntryPoint = "InitializeModule", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Stdcall)]