您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> VC/MFC >> 如何在VC8中使用DEF文件导出class

如何在VC8中使用DEF文件导出class

来源:网络整理     时间:2016/8/19 1:34:39     关键词:

关于网友提出的“ 如何在VC8中使用DEF文件导出class”问题疑问,本网通过在网上对“ 如何在VC8中使用DEF文件导出class”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: 如何在VC8中使用DEF文件导出class
描述:

我使用自己定义在DLL文件里面的仿函数,但是怎么才能把它导出呢?
--==TestDll.h==--
// This class is exported from the TestDll.dll
class TESTDLL_API CTestDll {
public:
CTestDll(void);
// TODO: add your methods here.
public:
int operator()(int i)
{
return i * i;
}
};
--==TestDll.cpp==--
// This is the constructor of a class that has been exported.
// see TestDll.h for the class definition
CTestDll::CTestDll()
{
return;
}


以上介绍了“ 如何在VC8中使用DEF文件导出class”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/3381296.html

相关图片

相关文章