Using DLLs made with MFC in a non-MFC app
Posted on 1998-07-02
We would like to be able to use MFC (VC++ 5.0) to make dlls that contain multiple Active X and standard controls and some associated dialogs. We would then need to be able to link to these dll's from other non-MFC programs
that were created by an outside company.
These other programs have well documented pre-defined interfaces that they provide to allow the use of external dll's.
We would need to make the layer that both provides the required environment for the Active X controls and maps the requests from the outside program to the appropiate functions of the Active X controls. Our dll can link to the
MFC dll and any other dll it requires.
Our dlls would typically contain a dialog that had Active X controls in it, much like a "FormView" (dialog) application.
Is this possible and practical?
If so, how do you build a simple prototype for this (for example, a simple non-MFC program that uses a dll
that has a dialog containing an Active X control)?
Since our experience with MFC dll's and Active controls is limited to the basic design methods that the AppWizard
supports, we would need a detailed example or detailed instructions on exactly how to do this.