// dllmain.cpp : Implementation of DllMain. #include "pch.h" #include "framework.h" #include "resource.h" #include "$safehandleridlprojectname$_i.h" #include "dllmain.h" #include "xdlldata.h" $handlermodulename$ _AtlModule; class $handlerappname$ : public CWinApp { public: // Overrides virtual BOOL InitInstance(); virtual int ExitInstance(); DECLARE_MESSAGE_MAP() }; BEGIN_MESSAGE_MAP($handlerappname$, CWinApp) END_MESSAGE_MAP() $handlerappname$ theApp; BOOL $handlerappname$::InitInstance() { if (!PrxDllMain(m_hInstance, DLL_PROCESS_ATTACH, nullptr)) return FALSE; return CWinApp::InitInstance(); } int $handlerappname$::ExitInstance() { return CWinApp::ExitInstance(); }