I finally got around to downloading, installing, and playing with Visual Studio 2013, specifically, the Express Edition for Windows Desktop (for C++).
Every time I upgrade, it seems like I have to re-learn the GUI.
As my first test, I took an existing program that worked in a previous version of VS Express and tried to make it work in VS2013.
A couple things got me puzzled.
1) Experiment 1: Created a Win32 Console Application with the New Project Wizard. Worked pretty much as in the tutorial elsewhere in these forums (http://www.cplusplus.com/doc/tutorial/introduction/visualstudio/).
One difference between the tutorial and VS2013 is that in VS2013, a basic .cpp source file is automatically created in the new project; you don't have to manually add it to the project. This source file looks like the following:
// Source1.cpp : Defines the entry point for the console application.
int _tmain(int argc, _TCHAR* argv)
I deleted this content and replaced it with my own source code, but got an error when trying to compile, stating that I must include "stdafx.h". So I added it back into my source file. It compiles and runs fine now.
I don't recall ever needing to include this file in any of my previous programs. Anybody here know why the change? (Perhaps is was always there, but included behind the scenes?) If I go back and port all my existing code to VS2013, I'd rather not
have to add this line to all my programs. Anybody here know how to remove it from my source code file, but ensure the program runs correctly?
2) Experiment 2: I created another project, an "Empty Project" with the New Project Wizard. Copied the same source code into this project. This time I cannot compile. An error message pops up saying, "Unable to start program. . . .The system cannot find the file." I am sure I am overlooking something simple, and will kick myself later for it, but it is eluding me for now. What do I have to do to make this program compile and run?