wow.cpp
上传用户:yisoukefu
上传日期:2020-08-09
资源大小:39506k
文件大小:1k
源码类别:

其他游戏

开发平台:

Visual C++

  1. #include <windows.h>
  2. #include "resource.h"
  3. struct CAppStartupParam
  4. {
  5. HINSTANCE hInstance;
  6. const char *pPath;
  7. UINT idResVertexShader;
  8. UINT idResPixelShader;
  9. UINT idAppIcon;
  10. UINT idSmallIcon;
  11. UINT reserve1;
  12. UINT reserve2;
  13. };
  14. extern int RunApp(const CAppStartupParam *pAppStartupParam);
  15. INT APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int)
  16. {
  17. CAppStartupParam param;
  18. memset(&param, 0, sizeof(param));
  19. param.hInstance = hInstance;
  20. param.idResVertexShader = IDR_VETEX;
  21. param.idResPixelShader = IDR_PIXEL;
  22. param.idAppIcon = IDI_WOW;
  23. param.idSmallIcon = IDI_WOW;
  24. return RunApp(&param);
  25. }