O'Reilly logo

C++ Multithreading Cookbook by Milos Ljumovic

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a C++ project

All our examples will require Visual Studio IDE. We will now show you how to properly set up an IDE. We'll also point out specific settings that will impact multithreaded applications.

Getting ready

Make sure Visual Studio (VS) is up and running.

How to do it...

Run Visual Studio and select a new project on the Start page. A new window with multiple options will appear. Under Templates on the left side, select C++ and expand the C++ node. You'll see the CLR, General, Test, and Win32 options. Then, perform the following steps:

  1. Select Win32. You'll see two options in the middle row: Win32 console application and Win32 project.

    The Win32 project option is used for applications that have a Graphical User Interface (GUI) other than ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required