template in a mfc static lib
C / C++ / MFC
1
Posts
1
Posters
3
Views
1
Watching
-
Problem: I want to create a class in the static lib that has an unknown base class . Unknown means it must be a CWnd or CView or a class derived from one of those. The reason is so I dont have to maintain the code in multiple classes as I want to use the class in a CView derived class and CWnd derived class, but another person needs to use it in a CBaseView derived class and a CBaseWnd derived class. The problem I have come across so far is the message map and the IMPLEMENT_DYNAMIC macros. Any Ideas? Open to sugestions for a better solution.