#include "stdafx.h"
#include "mfdll.h"
CSilverDLLApp theApp; // The one and only CSilverDLLApp object
HINSTANCE mfdll_instance = NULL;
///////////////////////////////////////////////////////////////////
// CSilverDLLApp message map
BEGIN_MESSAGE_MAP(CSilverDLLApp, CWinApp)
.
.
.
END_MESSAGE_MAP()
///////////////////////////////////////////////////////////////////
// CSilverDLLApp construction
CSilverDLLApp::CSilverDLLApp()
{
}
BOOL CSilverDLLApp::InitInstance()
{
mfdll_instance = m_hInstance;
return CWinApp::InitInstance();
}
int CSilverDLLApp::ExitInstance()
{
return CWinApp::ExitInstance();
}
// return a pointer to the DLL's CWinApp
CWinApp *GetTheApp()
{
return (CWinApp *) &theApp;
}
|