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
- DanielMy 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
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
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
"If a man does not keep pace with his companions, perhaps it is because he hears a different drummer. Let him step to the music he hears, however measured or far away"--Henry David Thoreau
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement