We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译项目后,在文件夹:“C:\Users\Administrator\Desktop\3Dtiles\3dtiles\vs\x64\Release”下生成了4个文件:“3dtile.dll, 3dtile.lib, 3dtile.exp, 3dtile.pdb ”。
我写了控制台应用代码去调用dll:
#include <iostream> #include <windows.h> int main() { std::cout << "Hello World!\n"; HINSTANCE hDll; // DLL 句柄 hDll = LoadLibrary(L"3dtile.dll"); // 动态获取 dll 文件的路径 if (hDll != nullptr) { std::cout << "DLL loaded successfully!" << std::endl; FreeLibrary(hDll); } else { // 加载 DLL 失败,打印错误信息 DWORD dwError = GetLastError(); std::cerr << "Failed to load DLL: " << dwError << std::endl; } return 0; }
输出:Failed to load DLL: 126 为何不能调用dll呢。 求解,困扰我两天了。 可是项目中,dll真的存在呀。
The text was updated successfully, but these errors were encountered:
可能没找到 dll 依赖的其他运行库, 最好引用 lib 进行编译,这样比较简单
Sorry, something went wrong.
No branches or pull requests
编译项目后,在文件夹:“C:\Users\Administrator\Desktop\3Dtiles\3dtiles\vs\x64\Release”下生成了4个文件:“3dtile.dll, 3dtile.lib, 3dtile.exp, 3dtile.pdb ”。
我写了控制台应用代码去调用dll:
输出:Failed to load DLL: 126
为何不能调用dll呢。 求解,困扰我两天了。
可是项目中,dll真的存在呀。
The text was updated successfully, but these errors were encountered: