// ---------------------------------------------------
/*
  #define IDOK 1
  #define IDCANCEL 2
  #define IDABORT 3
  #define IDRETRY 4
  #define IDIGNORE 5
  #define IDYES 6
  #define IDNO 7

  // WINVER >= 0x0400
  #if(WINVER >= 0x0400)
  #define IDCLOSE 8
  #define IDHELP 9
  #endif 
*/
// ---------------------------------------------------
#include <windows.h>
#include <stdio.h>
int WinMain( HINSTANCE hInstance, 
             HINSTANCE hPrevInstance,
             LPSTR lpCmdLine, 
             int nShowCmd )
{
    char buf[200];
    int ret = MessageBox(NULL, "Hello, World", "WinMain", MB_OKCANCEL);
    sprintf(buf, "ret=%d", ret);
    MessageBox(NULL, buf, "Return value", MB_OK);
    return 0;
}

 

 

文章標籤
全站熱搜
創作者介紹
創作者 edisonx 的頭像
edisonx

Edison.X. Blog

edisonx 發表在 痞客邦 留言(0) 人氣(1)