- //hello.cpp -A sample "Hello World" program.
- #include "windows.h"
- #include <stdio.h>
- #include <Winbase.h>
- // program entry point
- int WINAPI WinMain (HINSTANCE hInstance,HINSTANCE hPrevInstance,LPWSTR lpCmdLine,int nShowCmd)
- {
- //printf("Hello2n");
- //Sleep(5);
- MessageBox(NULL,TEXT("Hello world!"),TEXT("fhello"),MB_OKCANCEL);
- MessageBox(NULL,TEXT("Hello world!"),TEXT("fhello"),MB_DEFBUTTON1);
- return 0;
- }
English
