To create a new project pull down the 'File' menu and select 'New'. You will be given a dialog box with a lot of options. If the projects tab is not already selected do so now. If you are writing a non-windows based program (which you will be if you are in CS1711) then select 'Win32 Console Application', if you are writing a windows program in CS2611 then select 'Win32 Application'.
In the project name, type the name of your project with no extensions. For example HelloWorld would be fine (don't press enter yet!). You can modify the location of the project if you wish. Make sure the option to 'Create new workspace' is chosen. Finally click the Ok button.
The workspace window should have changed slightly. You will now see three tabs, we will be interested in just the FileView tab. The ClassView tab is very handy if you are proficient in programming, but I suggest that you avoid it for the time being. Click on the FileView tab.
To write a program, you need to have a source file. Pull down the File menu and select New again. This time the Files tab should be active. Click on 'C++ Source File' and give the file a name with no extension or add the .cpp extension. If you selected the wrong type (I've done it a time or two) just repeat the process and when it asks you if you want to overwrite the existing file say Yes.
Type your program. For example lets use:
#includemain() { cout << "Hello world" << endl; return(0); }
You have some options here. You can either compile then run the program, or you can try to run the program. If the program needs to be compiled then the environment will compile it for you. I suggest trying to compile (build) the program first. If there are warnings then you can fix them (most warnings are trying to tell you something).
To build the program pull down the Build menu and select Build. You can can also build the program by pressing F7 (as seen in the menu) or by pressing the Build button on the toolbar.
When you instruct the environment to build an output window will appear along the bottom of the screen. This will contain error message when the 'Build' tab is selected. If you typed everything correctly then you should see on the last line: 0 error(s), 0 warning(s). This is what you hope for. Now you can run the program by selecting Build|Execute or by pressing the exclamation mark on the toolbar. Doing so will open a dos window with the output followed by the instruction to 'Press any key to continue'.
To go back and work on a project you closed before you should pull down the File menu and see if the workspace is listed in 'Recent Workspaces'. If the workspace is not listed there then select Open Workspace and change to the directory where the project was stored looking for a file with the extension dsw.
Why is the compiler complaining about unknown symbols during the link phase? I know the function I write is there and correct! I think there may be a bug with Microsoft's Incremental Linker. I think the linker can sometimes become confused and will not add the latest symbols to the link file. I've found that performing a 'Build All' will usually cure this problem.