OKIEWARDOYO

C++ No.6

Apr 23rd, 2012
1,362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include <windows.h>
  2.  
  3. INT WINAPI wWinMain(HINSTANCE hInst,
  4.             HINSTANCE hPrevInst,
  5.             LPWSTR lpCmdLine,
  6.             INT nShowCmd)
  7.  
  8. {
  9.     int nResult=MessageBox(NULL,
  10.             "Gan,ada yang error, Gimana nih????!!",
  11.             "WALAH!",
  12.             MB_ICONERROR|MB_ABORTRETRYIGNORE);
  13.    
  14.     switch(nResult)
  15.     {
  16.         case IDABORT:
  17.             // 'Abort' was pressed
  18.             break;
  19.         case IDRETRY:
  20.             // 'Retry' was pressed
  21.             break;
  22.         case IDIGNORE:
  23.             // 'Ignore' was pressed
  24.             break;
  25.     }
  26.  
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment