⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flyplugin.cpp

📁 是3D游戏一书中所讲的游戏引擎fly3D 包括fly3D引擎的源码及应用此引擎开发出来的游戏实例 有fly3D引擎的教程,易于step by step跟学
💻 CPP
字号:
// flyplugin.cpp : Defines the initialization routines for the DLL.
//

#include "stdafx.h"
#include <afxdllx.h>
#include "flyplugin.h"
#include "flypluginaw.h"

#ifdef _PSEUDO_DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

static AFX_EXTENSION_MODULE FlypluginDLL = { NULL, NULL };

HINSTANCE hInst=0;

extern "C" int APIENTRY
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
	hInst=hInstance;
	if (dwReason == DLL_PROCESS_ATTACH)
	{
		TRACE0("FLYPLUGIN.AWX Initializing!\n");
		
		// Extension DLL one-time initialization
		AfxInitExtensionModule(FlypluginDLL, hInstance);

		// Insert this DLL into the resource chain
		new CDynLinkLibrary(FlypluginDLL);

		// Register this custom AppWizard with MFCAPWZ.DLL
		SetCustomAppWizClass(&Flypluginaw);
	}
	else if (dwReason == DLL_PROCESS_DETACH)
	{
		TRACE0("FLYPLUGIN.AWX Terminating!\n");

		// Terminate the library before destructors are called
		AfxTermExtensionModule(FlypluginDLL);
	}
	return 1;   // ok
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -