ucguigenapp.cpp

来自「UCGUIFontTool」· C++ 代码 · 共 37 行

CPP
37
字号
// UCGUIGenApp.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "stdio.h"

typedef bool (*LPFun)();

int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
	char dllpath[256];
	HINSTANCE hDLLInst=NULL;
	do{
		strcpy(dllpath, "UCGUIFontGen.dll");	
		if ((hDLLInst = LoadLibrary(dllpath)) == NULL){
			OutputDebugString(dllpath);
			MessageBox(NULL, dllpath, "加载DLL失败!", 0);
			break;
		}	
		LPFun ShowGenFontHZDlg;
		ShowGenFontHZDlg = (LPFun)GetProcAddress(hDLLInst, (LPCSTR)"ShowGenFontHZDlg");		
		if (ShowGenFontHZDlg == NULL){
			MessageBox(NULL, "Can not find Process!", "test", 0);
			break;
		}
		ShowGenFontHZDlg();
	}while(0);
	FreeLibrary(hDLLInst);
	return 0;
}



⌨️ 快捷键说明

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