本人用C++写一个DLL给易语言用,在本人的主机中易语言程序还可以调用
但一换机子或在虚拟机中使用时就出现了错误
无法找到指定DLL库文件“mydll.DLL”中的输出命令“GetBmp”
本人的DLL也只有这一个函数
但一换机子或在虚拟机中使用时就出现了错误
无法找到指定DLL库文件“mydll.DLL”中的输出命令“GetBmp”
本人的DLL也只有这一个函数
//这是声明 extern "C" void __declspec(dllexport) __stdcall GetBMP(HWND hwnd, int x, int y, wchar_t* fileName);
在Dependency下看出现了这些错误
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
问一下怎么解决
解决方案
10
Modules with different CPU types were found.
x86 x64?检查一下程序和dll的位数能否匹配?
x86 x64?检查一下程序和dll的位数能否匹配?
5
GetBMP是不是还依赖于别的dll?
10
DLL中慎用class
5
依赖别的库,必须有其dll或静态编译
20
32位DLL 与 64位DLL