0

i am just trying basic C++ GUI and i ran this code from a tutorial site.

#include <windows.h>

int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR pszCmdLine, int iCmdShow)
{
	MessageBox(NULL, "Hello World", "Testing", 0);
	return 0;
}

when i run it, it executes and makes a animation of a bouncing ball. any ideas on what made this so messed up?

-using visual C++ 2008
-running vista 64 bit, home edition

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by totalwar235
0

my guess: You compiled to an executable that has the same name as an exe that displays a bouncing ball... and that existing exe is first on your path. Just a guess.

0

my guess: You compiled to an executable that has the same name as an exe that displays a bouncing ball... and that existing exe is first on your path. Just a guess.

i will try it

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.