Moving GUI from EXE to COM-dll
-
Hi, I have constructed a generic application with the idea to use it over and over again. The problem is that this application also has a user interface that is different for different customers. The functionality is roughly the same, though. Now I'm trying to do the following. The GUI was implemented in document/view/frame combinations which run in an MDI application. These forms were originally programmed inside the exe but now I want to disconnect them from the exe one way or the other. My idea was to put them in a COM-component and let the component register the document/view/frames in the exe. This doesn't work though. As soon as I try to create a childframe window in the COM-component, I get messages that the main window isn't valid (HWND obviously is corrupted, which I can understand).... Is there a way to get this job done? I've been considering the following alternatives: * Move the GUI-classes to a MFC Extention DLL and somehow extract them from there and let the exe create the dialogs/views * Put the GUI-classes inside a toolwindow docked inside the MDI-app. I still have problems with the parent-window pointer them, though * Something else... Maybe use full-screen modal or modeless dialogs and create those inside a COM component.... I still prefer my first idea though, if it is technically realisable.... Can anyone help? Structured programming vs. chaotic mind boggling