main.cpp 510 B

12345678910111213141516171819
  1. #include "..\public.h"
  2. #include "windows.h"
  3. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){
  4. ChangeWindowMode(true);
  5. if (DxLib_Init() == -1){
  6. MessageBoxA(0,"Failed to initialized DxLib!","Error",MB_ICONERROR);
  7. return -1;
  8. }
  9. if (SetDrawScreen(DX_SCREEN_BACK)!=0){
  10. MessageBoxA(0, "Failed to initialized DxLib!", "Error", MB_ICONERROR);
  11. return -1;
  12. }
  13. while(ProcessMessage() == 0 && ClearDrawScreen() == 0){
  14. ScreenFlip();
  15. }
  16. DxLib_End();
  17. return 0;
  18. }