Creating a New Project

Creating a New Project

When you create a project, Visual Studio* automatically creates a corresponding solution to contain it. To create a new Intel® C++ project using Visual Studio*:

  1. Select File > New > Project. This opens the New Project dialog box.

  2. Expand Visual C++ and select Win32.

  3. Select Win32 Console Application.

  4. Enter a name for your project in the Name field. For this example, use hello32 as the project name.

  5. Click OK to save your new project information. This opens the Win32 Application Wizard.

  6. Click Next to advance to Application Settings.

  7. For this example, check the Empty project box.

  8. Click Finish to complete the new project. The hello32 project assumes focus in the Solution Explorer view. The default Visual Studio* solution is also named hello32.

Your newly created project is a Visual C++* project. To specify that you want to use the Intel® C++ Compiler for your Visual Studio* project, use the Project > Intel Compiler > Use Intel C++ toolbar option.

Adding Source Files

Before you can build the hello32 project, you need to add a source file to the empty project. Follow these steps:

  1. Right-click the Source Files folder in the Solution Explorer.

  2. Select Add > New Item... from the pop-up menu. This action opens the Add New Item dialog.

  3. In the left pane, expand the selections under Visual C++ and select Code.

  4. In the right pane, select C++ File (.cpp).

  5. Enter hello32.cpp for the file name, then click Add.

  6. Use the Visual Studio* editor to add "Hello World" code to hello32.cpp. Be sure to save your work when you are finished.

For more complete information about compiler optimizations, see our Optimization Notice.