Export CWnd* from DLL
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Can I create a CWnd* class from an DLL that is loaded at runtime and the use it. Like this. I have a tabview in my program that takes CWnd* objects. And say that the user select something and then a DLL is lunched ( a plugin ) And all Plugin DLLs have a function call CreateObject(). It calls it and returns a CWnd* object. The main program don’t know anything about the object except that it’s a CWnd* object Now. Can I just take this object and threat it as any other object ? What restriction are they? Do I need to do some special stuff to make it work? What I understand is that I need to let the DLL also take care of the deleting of the object, since it create it. Is that correct ? /Mathias