GUI MFC Framework inside ATL DLL server

.

Environment: Windows NT, 9x   Visual C++ 5, 6

I built this application with VC5. I don't think there should be a problem comiling it with VC6.

This MFC GUI framework is placed inside ATL DLL server and is invoked by parent application. Parent application manages this window and when parent application terminates so does this embedded window. It behaves much like Microsoft's Outlook Email and Forms, which appear to be a standalone frame/view/doc and which is managed by parent Outlook application.

Whats in it for you? Lots! First - You have only one invoking method inside parent program.After the method was implemented, this DLL can be completely developed standalone (no need to recompile parent app). You can create hundreds of these dlls with frame windows inside and enjoy nice scalability of you parent app. Web applications with doc/view features. Etc. Etc. Etc.

1. I created a MFC single document application with app wizard.

2. Edit InitInstance() function add these lines:

//*********************************

if (!AfxOleInit())

{

AfxMessageBox("Failed to load OLE");

return FALSE;

}

CoInitialize(0);

//*********************************

3. Add ExitInstance() virtual function and insert there this line:

//****************

CoUninitialize();

//*****************

4. Refer to the code in the ATL project how to implement framework.

                                

                     

Downloads

After unzipping files run batch file to register gui.dll. If you compile this project registration shoul be done automatically.

Downloads

Download demo project - 92 Kb


Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • For the first time in modern history, workplace demographics now span four generations. Understanding the unique social influences that have shaped the behaviors of each is instrumental in creating productive work teams. And when managed effectively, their strengths, perspectives, and experiences can bring synergy in the workplace. Download this white paper for best practices on how to better understand and effectively manage a multi-generational workforce.

  • Live Event Date: July 8, 2015 @ 2:00 p.m. ET / 11:00 a.m. PT With business driving the increasing adoption of agile methodologies such as Continuous Integration and Continuous Deployment, the need for agile database tooling has become even more important. In many companies, the database development lifecycle has become the bottleneck in an otherwise agile delivery process. As such, database professionals are under increasing pressure to shorten delivery timelines even further, only increasing the stakes …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date