Hello World
#include "windows.h" //ya it has to be in brackets, but since it''s gonna be interpreted as HTML tags, i put it in quotes
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
MessageBox(NULL,"Hello world!","Title",MB_OK+MB_ICONEXCLAMATION);
return 0;
}
- pouya
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
MessageBox(NULL,"Hello world!","Title",MB_OK+MB_ICONEXCLAMATION);
return 0;
}
- pouya
Create a new project and choose Win32 Application, then pick a "simple Hello World program".
- Daniel
my homepage
- Daniel
my homepage
quote:Original post by deakin
Create a new project and choose Win32 Application, then pick a "simple Hello World program".
*GASP* That''s cheating!
--------------------
You are not a real programmer until you end all your sentences with semicolons;
Visit the ROAD Programming Website
Stick with Pouya's example. The hello world program that comes with VC++ is long and confusing to a first-time Windows programmer.
Edited by - CobraA1 on 4/28/00 12:01:10 PM
Edited by - CobraA1 on 4/28/00 12:01:10 PM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement