wow.cpp
上传用户:yisoukefu
上传日期:2020-08-09
资源大小:39506k
文件大小:1k
- #include <windows.h>
- #include "resource.h"
- struct CAppStartupParam
- {
- HINSTANCE hInstance;
- const char *pPath;
- UINT idResVertexShader;
- UINT idResPixelShader;
- UINT idAppIcon;
- UINT idSmallIcon;
- UINT reserve1;
- UINT reserve2;
- };
- extern int RunApp(const CAppStartupParam *pAppStartupParam);
- INT APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int)
- {
- CAppStartupParam param;
- memset(¶m, 0, sizeof(param));
- param.hInstance = hInstance;
- param.idResVertexShader = IDR_VETEX;
- param.idResPixelShader = IDR_PIXEL;
- param.idAppIcon = IDI_WOW;
- param.idSmallIcon = IDI_WOW;
- return RunApp(¶m);
- }