quote: Original post by DerekSawThere''s no point in starting with a 100 line Hello World windows program when you can start with a 3 line console Hello World program.
#include <windows.h>int WINAPI WinMain(HINSTANCE, HINSTANCE, LPCTSTR, int){ ::MessageBox(0, "Hello, World!", "Welcome", MB_OK); return 0;}
Well, just 2 lines in the WinMain()!
[EDIT] Anyway, building up your experience on pointers/references in console mode would be easier than figuring out errors like "unable to convert ''void*'' from ''HINSTANCE__*'' ".
[edited by - DerekSaw on December 27, 2002 9:45:03 PM]
@DerekSaw: I guess you can program a hello world program that way, but you should look at Microsoft''s idea of what Hello World is. In Visual C++, when you create a new project and normally specify ''Empty Workspace'', specify ''Hello World'' or something like that. It''s just – pathetic.
[ c o d e m a t r i x ]