#include <windows.h> #pragma comment(linker, "/subsystem:windows") int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { MessageBox(NULL,"Hello,world!","L",0); return 0; }