15,471
社区成员
发帖
与我相关
我的任务
分享
// MY_DLL.cpp : Defines the initialization routines for the DLL.
//
#include "stdafx.h"
#include "MY_DLL.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
//
//TODO: If this DLL is dynamically linked against the MFC DLLs,
// any functions exported from this DLL which call into
// MFC must have the AFX_MANAGE_STATE macro added at the
// very beginning of the function.
//
// For example:
//
// extern "C" BOOL PASCAL EXPORT ExportedFunction()
// {
// AFX_MANAGE_STATE(AfxGetStaticModuleState());
// // normal function body here
// }
//
// It is very important that this macro appear in each
// function, prior to any calls into MFC. This means that
// it must appear as the first statement within the
// function, even before any object variable declarations
// as their constructors may generate calls into the MFC
// DLL.
//
// Please see MFC Technical Notes 33 and 58 for additional
// details.
//
// CMY_DLLApp
BEGIN_MESSAGE_MAP(CMY_DLLApp, CWinApp)
END_MESSAGE_MAP()
// CMY_DLLApp construction
CMY_DLLApp::CMY_DLLApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
// The one and only CMY_DLLApp object
CMY_DLLApp theApp;
// CMY_DLLApp initialization
BOOL CMY_DLLApp::InitInstance()
{
CWinApp::InitInstance();
return TRUE;
}
_hWnd = ::CreateWindowExW(0L, MESSAGE_WINDOW_CLASS_NAME, L"", 0, 0, 0, 1, 1, HWND_MESSAGE , NULL, _class._hModule, this);