dllmain.cpp

来自「firtext搜索引擎源码」· C++ 代码 · 共 25 行

CPP
25
字号
#include <windows.h>HINSTANCE hDllInstance = 0;BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/){	if (dwReason == DLL_PROCESS_ATTACH)	{		// Save the instance handle		hDllInstance = hInstance;		// initialize the COM module information		//_Module.Init(ObjectMap, hInstance);		DisableThreadLibraryCalls(hInstance);		// initialize the common controls		// they are used in some of the dialogs		//InitCommonControls();	}	else if (dwReason == DLL_PROCESS_DETACH)	{		//_Module.Term();	}	return TRUE;    // ok}

⌨️ 快捷键说明

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