Advertisement

Hello World

Started by April 25, 2000 07:50 PM
4 comments, last by okay 24 years, 7 months ago
somebody show me how to do hello world in win32 for visual c++6
#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
Advertisement
Create a new project and choose Win32 Application, then pick a "simple Hello World program".

- 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;

Yanroy@usa.com

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

Yanroy@usa.com

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
"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
NOOOO, don''t spell my name wrong!!!! it''s POUYA not poya

hehe

- pouya

This topic is closed to new replies.

Advertisement