///////////////////////////////////////////////////////////////////// // Dial0gExp.cpp - Experiment with ATL Dialog Windows // // // // Jim Fawcett, CSE775 - Distributed Objects, Spring 2006 // ///////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "resource.h" #include "DialogExp.h" #include "DlgExp.h" CComModule _Module; // changed from CExeModule /////////////////////////////////////////////////////////////// // Deleted all the COM related code here // /////////////////////////////////////////////////////////////// BEGIN_OBJECT_MAP(ObjectMap) END_OBJECT_MAP() /////////////////////////////////////////////////////////////// // Deleted all the COM related code from _tWinMain, e.g., // // about 90% of the total code // /////////////////////////////////////////////////////////////// extern "C" int WINAPI _tWinMain( HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpCmdLine, int /*nShowCmd*/ ) { lpCmdLine = GetCommandLine(); // not used for this demo // but could be useful _Module.Init(ObjectMap, hInstance); // removed 3rd argument CDlgExp dlg; // added to create dialog dlg.DoModal(); // added to display it _Module.Term(); return 0; }