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

📄 arsmsg.cpp

📁 自己编写的一个数据库
💻 CPP
字号:
// arsmsg.cpp : Defines the entry point for the DLL application.
//

#include "stdafx.h"
#include "arsmsg.h"

static HINSTANCE hInstance;
BOOL APIENTRY DllMain( HANDLE hModule, 
                       DWORD  ul_reason_for_call, 
                       LPVOID lpReserved
					 )
{
    switch (ul_reason_for_call)
	{
		case DLL_PROCESS_ATTACH:
            hInstance = (HINSTANCE )hModule;
            break;
		case DLL_THREAD_ATTACH:
		case DLL_THREAD_DETACH:
		case DLL_PROCESS_DETACH:
			break;
    }
    return TRUE;
}



// Retrieves resouce given by ID
// lpStr must be atleast ARSMSG_MAX_MSG_SIZE
ARSMSG_API char * arsmsg_GetMessage(UINT nID, char *lpStr, BOOL *res)
{
    BOOL r;
    
    lpStr[0] = '\0';
    
    r = LoadString(hInstance, nID, lpStr, ARSMSG_MAX_MSG_SIZE);
    
    if (res)
        *res = r;

    return lpStr;
}

⌨️ 快捷键说明

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