我使用自己定义在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;
}