摘要:
1.extern "C" 和dllexport一起使用库工程GlobalTest的.h代码如下#ifdefGLOBALTEST_EXPORTS#defineGT_EXPORT__declspec(dllexport)#else#defineGT_EXPORT__declspec(dllimport)#endifnamespacett{extern"C"GT_EXPORTvoidfatalerr(void);}.cpp#include"globalMethod.h"#include<iostream>usingnamespa 阅读全文
posted @ 2011-06-08 08:56 mumuliang 阅读(442) 评论(2) 推荐(0) 编辑