dllImport的入口点问题
通过Dependencies查询Dll对应方法的EntryPoint
然后在dllimport的attribute中显式申明EntryPoint
[DllImport("demo.dll", SetLastError = true,EntryPoint ="[email protected]@Gfeit@@[email protected]")]
public static extern IntPtr DemoManager();
导入类方法的问题
最好的方式还是使用C++构造wrapper,然后通过windowsApi的方式调用Pinvoke