DLL导出

情况一:导出类

class _declspec (dllexport)  A
{

};

情况二:导出C函数

extern "C" void  _declspec (dllexport)  pri();
//没有修饰符,产生的名字就是函数名pri

评论

暂无评论