To create a new project and add a source file Create a new project: On the File menu, point to New, and then click Project…. From the Visual C++ project types, click Win32, and then click Win32 Console Application. Enter a project name. By default, the solution that contains the project has the same name as the new project, but you can enter a different name. You can enter a different location for the project if you want. Click OK to create the new project. In the Win32 Application Wizard, select Empty Project and click Finish. If Solution Explorer is not visible, click Solution Explorer on the View menu. Add a new source file to the project: Right-click on the Source Files folder in Solution Explorer, point to Add, and click New Item. Click C++ File (.cpp) from the Code node, enter a file name, and then click Add. The .cpp file appears in the Source Files folder in Solution Explorer and a tabbed window appears where you type in the code. |