3.2.2   Prepare Visual Studio Project

In this example, we will use Visual Studio 2019. 1)

  1. Create an empty C++ Windows Console project and name it vs_count_regions. Please activate the option Place solution and project in the same directory. 2)
  2. Add a C++ source file (Menu Project ▹ Add New Item... ▹ C++ File)
    and name it vs_count_regions.cpp.
  3. Choose the solution platform x64 from the drop down menu in the toolbar.
  4. Open your project properties (Menu Project ▹ vs_count_regions Properties...)
    and make the following settings:

1) We recommend using the latest supported version of Visual Studio.
2) The directory structure is important, because the final C++ program includes relative paths.