📄 myappwizard.cpp
字号:
// MyAppwizard.cpp : Defines the initialization routines for the DLL.
//
#include "stdafx.h"
#include <afxdllx.h>
#include "MyAppwizard.h"
#include "MyAppwizardaw.h"
#ifdef _PSEUDO_DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
static AFX_EXTENSION_MODULE MyAppwizardDLL = { NULL, NULL };
extern "C" int APIENTRY
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
TRACE0("MYAPPWIZARD.AWX Initializing!\n");
// Extension DLL one-time initialization
AfxInitExtensionModule(MyAppwizardDLL, hInstance);
// Insert this DLL into the resource chain
new CDynLinkLibrary(MyAppwizardDLL);
// Register this custom AppWizard with MFCAPWZ.DLL
SetCustomAppWizClass(&MyAppwizardaw);
}
else if (dwReason == DLL_PROCESS_DETACH)
{
TRACE0("MYAPPWIZARD.AWX Terminating!\n");
// Terminate the library before destructors are called
AfxTermExtensionModule(MyAppwizardDLL);
}
return 1; // ok
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -