动态库中(规则mfc库)函数的声明:
#ifdef __cplusplus
extern "C" {
#endif
__declspec(dllexport) void Test();
#ifdef __cplusplus
}
#endif
#endif
实现:
void Test()
{
AfxMessageBox("");
}
然后我在程序中调用
Test()就会出现这个问题,这个东西 __declspec( dllimport ) Test()我加上也没用,求大侠帮忙,谢谢
#ifdef __cplusplus
extern "C" {
#endif
__declspec(dllexport) void Test();
#ifdef __cplusplus
}
#endif
#endif
实现:
void Test()
{
AfxMessageBox("");
}
然后我在程序中调用
Test()就会出现这个问题,这个东西 __declspec( dllimport ) Test()我加上也没用,求大侠帮忙,谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货