BadImageFormatException or An attempt was made to load a program with an incorrect format

c# pinvoke C++程序异常: BadImageFormatException or “An attempt was made to load a program with an incorrect format”    原因   dll平台不兼容。x64 编译 的c++ dll 而 c# 项目里设置了prefer 32bit , 或 x32 编译的 c++ 被 c#调用. 解决方案: c
相关文章
相关标签/搜索