Click to See Complete Forum and Search --> : WIN32 DLL EXPORT OF VIRTUAL FUNCTIONS
adisD
May 19th, 1999, 03:32 AM
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 !!!
muscicapa
May 20th, 1999, 11:04 PM
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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.