Hi
I am trying to export pure virtual function from an NOT MFC DLL.
class __declspec(dllexport) CMyClass
{
public:
virtual int Dummy() = 0;
};
It doesn't work !!!
Printable View
Hi
I am trying to export pure virtual function from an NOT MFC DLL.
class __declspec(dllexport) CMyClass
{
public:
virtual int Dummy() = 0;
};
It doesn't work !!!
Interesting question this. I am interested to know if the classic Shapes example of OOP can be done with each shape in a separate DLL which will allow future addition of new shapes that wont be known in advance.
Of course it doesn't work. The virtual keyword implys that Dummy() has no implementation in CMyClass, thus there is nothing to export.