CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    1

    WIN32 DLL EXPORT OF VIRTUAL FUNCTIONS

    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 !!!


  2. #2
    Join Date
    May 1999
    Location
    13 N 77 E
    Posts
    183

    Re: WIN32 DLL EXPORT OF VIRTUAL FUNCTIONS

    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.


  3. #3
    Guest

    Re: WIN32 DLL EXPORT OF VIRTUAL FUNCTIONS

    Of course it doesn't work. The virtual keyword implys that Dummy() has no implementation in CMyClass, thus there is nothing to export.




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured