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

nothing weird in my compiler; just got a simple textbox saying hello world. used visual c++ 2010.

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.

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

yes, that did do the trick, thanks for your help.