Developer Guide and Reference

Contents

Creating a New Project

Creating a New Project

When you create a project, Microsoft Visual Studio* automatically creates a corresponding solution to contain it. To create a new Intel®
C++
project using Microsoft Visual Studio*:
  1. Select
    File
    New
    Project
    .
  2. In the left pane, expand
    Visual C++
    and select
    Win32
    .
  3. In the right pane, select
    Win32 Console Application
    .
  4. Accept or specify a project name in the
    Name
    field. For this example, use
    hello32
    as the project name.
  5. Accept or specify the Location for the project directory. Click
    OK
    .
  6. In the
    Win32 Application Wizard
    that appears, click
    Next
    to continue.
  7. In
    Application Settings
    that appear, check the
    Empty project
    box for this example. Click
    Finish
    to complete the new project.
The
hello32
project assumes focus in the
Solution Explorer
view. The default Microsoft 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 Microsoft 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
    and select
    Add
    New Item...
    The
    Add New Item
    dialog box opens.
  2. In the left pane, expand the selections under
    Visual C++
    and select
    Code
    .
  3. In the right pane, select
    C++ File (.cpp)
    .
  4. Enter
    hello32.cpp
    for the file name, then click
    Add
    .
  5. Use the Microsoft Visual Studio* editor to add
    Hello World
    code to
    hello32.cpp
    . Be sure to save your work when you are finished.
<