I am using VC 2008.
I call into an MFC regular DLL from a console app in C++. I want to show a top-level window (a form I created that is an IDD_FORMVIEW)
Right now I have no window showing. I am not sure what is wrong.
What do I have to do (starting from scratch) to create a main window in an MFC DLL? This is a regular DLL and a CDialog is NOT suitable for various reasons - we need a CFOrmView derived main window.
Specifically I am having trouble with
- hooking up the resource editor and my class with events
- figuring out how to display the window
EDIT
I've tried to add a CFrameWnd object to my code. The intellisense picks it up, but the compiler complains that CFrameWnd is a syntax error. (C2061) That makes no sense to me. I have included afxwin.h
This shouldn't be that hard. What I want to do is pretty simple I thought.
EDIT:
I tried one more possibility, but I am not sure if it will work (right now my exe won't load the new dll)
I created an SDI app in mfc app wizard. Then I created a regular MDC DLL. I copied all the files from the exe on top of the DLL project and added the CPP files for form, doc, etc. It builds fine. I didn't get the dll to load in the other space yet - might that be from some MFC-ness or other DLL stuff?