How to compile a .cc document using Visual Studio

I am trying to do a c++ exercise in my computer.I downloaded Visual Studio 2010 but have no idea about how to compile and run my program on it.
Can anyone help?
It might be a good idea to create a new project first, then add your file to it using "Add Existing File" or something like that.

There may well be a simpler way, but if there is I've been off that IDE long enough to forget it.

-Albatross
I am creating a new project. There are three folders under Project. One being Header file, the others being Resource file and Source file, what s the difference between Resource file and Source file?

thanks a lot
closed account (z05DSL3A)
Visual C++ Guided Tourhttp://msdn.microsoft.com/en-gb/library/ms235630.aspx

Creating Command-Line Applications (C++)
http://msdn.microsoft.com/en-gb/library/bb384834.aspx
hey, If my program uses wxWidgets, should I download wxWidgets and put it somewhere within visual studio?
thanks!
Create an empty project instead, then do what Albatross told you.
Thanks a lot!
I am trying to write some C++ codes for a university project that uses wxWidgets and OpenGL libraries for graphical user interface. I have already download and install all wxWidgets ports from the wxWidgets website. I put the installed folder in c/wxWidgets-2.8.11, which is the default path when I install it.
However, when I try to compile the file, it still says ‘Cannot open include file: 'wx/wx.h': No such file or directory’
Anyone can help?

No, no, no.. you have to build(compile) it yourself before you use it which takes about 45 minutes base on my machine.

Or

Download pre built binaries.
http://wxpack.sourceforge.net/
Hey, blackcoder41,

Thanks a lot. It is very helpful!
I have downloaded and install the wxFormBuilder from http://wxpack.sourceforge.net/.
After that I follow the tutorial on http://wiki.wxformbuilder.org/Tutorials/UsingWxFormBuilder and suceessfully generated a noname.cpp and a noname.h files...
I then create new project in Visual Studio and add the two files in.
However, when I debug it, it still says, "fatal error C1083: Cannot open include file: 'wx/string.h': No such file or directory"
Do I need to download some wx library and put it somewhere?
You have to add the the "include" and and "lib" folder of wxWidgets to VC++ Directories.
http://msdn.microsoft.com/en-us/library/t9az1d21%28VS.80%29.aspx
Topic archived. No new replies allowed.