15,466
社区成员
发帖
与我相关
我的任务
分享
//DLL头文件
class _declspec(dllexport) yourclass //导出类
#else
class _declspec(dllimport) yourclass //导入类
#endif
//类的引用:
#include "..\DLL头文件.h" //包含类声明头文件
#pragma comment(lib,"dll.lib");
int _tmain(int argc, _TCHAR* argv[])
{
//...
printf("hello world !\n");
return 0;
}