Mic*_*lli 5 c# c++ interop unmanaged managed
使用以下语法从C#应用程序调用C++编写的.dll会增加多长时间?
[DllImport("abc.dll", EntryPoint = "xcFoo", CallingConvention = CallingConvention.Cdecl)]
public extern static Result Foo(out IntPtr session,
[MarshalAs(UnmanagedType.FunctionPtr)]ObjectCallback callback,
UInt64 turnKey,
string serverAddress,
string userId,
string password);
Run Code Online (Sandbox Code Playgroud)
有更有效的方法吗?
| 归档时间: |
|
| 查看次数: |
5248 次 |
| 最近记录: |