View Single Post
Old 01-11-2009   #6

Google's Avatar
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default Re: Free Patriotic Movement Tone In C++

This is a windows 32-bit application and not a console application
To solve your problem, you either have to make a win32 project and put the code in, OR JUST create the cpp file and then in microsoft visual c++ go:
Project > Settings
In the C/C++ tab change the preprocessor definitions from WIN32,_DEBUG,_CONSOLE,_MBCS to WIN32, _DEBUG,_WINDOWS
In the Link tab change /subsystem:console in the project options to /subsystem:windows
And this will solve the problem.

You have to download and install the SDK platform. It is not included by default in VC2005. That's why the compiler cannot find that header file.
Edit: If you want, download windows.h from the internet and put it in the libraries directory.

By the way, I'm using visual c++ 6.0

Last edited by Google; 01-11-2009 at 11:41 PM.
Google is offline   Reply With Quote