C#引用c++ DLL找不到入口点

发布时间 2023-07-26 16:14:33作者: 奇迹之耀

c++中的函数名称在编译后改变了,需要利用dumpbin.exe找到编译后的名字

dumpbin.exe在VS安装目录

参考路径:C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\Hostx64\x64

打开cmd,移动到dumpbin.exe对应路径,然后输入命令dumpbin -exports D:\test\xxx.dll

 可以看到编译后的名字,然后使用c#重新引用