【发布时间】:2012-04-14 09:53:59
【问题描述】:
我尝试使用 __declspec(dllexport) 在我的 DLL 中导出函数,但它不起作用。 当我在主应用程序中运行 GetProcAddress 时,它总是显示“找不到指定的模块”。
但是如果我通过 .def 文件导出我的函数。效果很好。
你能帮我解决这个问题吗?我想使用 __declspec(dllexport) 而不是 .def 文件。
非常感谢。 (我使用的是 Visual C++ 2005,MFC)
【问题讨论】: