关于网友提出的“ 如何在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