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

📄 testlib.cpp

📁 RGPG Game im JAVA 用Java编写的RGPG游戏。
💻 CPP
字号:
// TestLib.cpp : Defines the entry point for the DLL application.
//

// Exclude rarely-used stuff from Windows headers
#define WIN32_LEAN_AND_MEAN

#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include "TestLib.h"

BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
	hModule;
	lpReserved;

    switch (ul_reason_for_call)
	{
		case DLL_PROCESS_ATTACH:
		case DLL_THREAD_ATTACH:
		case DLL_THREAD_DETACH:
		case DLL_PROCESS_DETACH:
			break;
    }
    return TRUE;
}

ULONG TestFunction()
{
	TCHAR lpMsg[512];

	_stprintf( lpMsg, _T("TestLib.dll:TestFunction() called from process #%d"), GetCurrentProcessId() );
	
	::MessageBox( 0, lpMsg, _T("TestLib"), MB_OK );

	return 1;
}

⌨️ 快捷键说明

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