CView in DLL, CDocument in EXE :: How to share?
-
Hi All, I am writing an outlook style program and I want to be able to put CView derived classes in dll's to keep them seperate from the main application, problem is though that I also want to keep all data in the CDocument derived class which is in my EXE. Unfortunately it seems that the only things that can be accessed from the DLL's are the CDocument methods and not those in my own custom CDocument derived class. If I type cast ie. (MyDoc*)CDocument(), I get the unresolved symbol linker error, which leads me to believe I will have to put all of my data classes in each dll and compile them in there too. Is there anyway to avoid having to do this as it seems like more work than just keeping all of the CView derived classes in the main EXE, even though it seems messier. Cheers, Clint