3

I have some c++ projects where it consists of both managed and unmanaged c++ projects.

How do I identify which project is managed c++ and which project is unmanaged c++ type.

Along with above could someone brief me what exactly these managed and unmanaged c++ means.

Siva
  • 1,281
  • 2
  • 19
  • 41
  • [Difference between managed c++ and c++](https://stackoverflow.com/questions/114238/difference-between-managed-c-and-c) – crashmstr Jun 29 '17 at 13:29

2 Answers2

6
  1. Go to the project properties, General "block"
  2. Project Defaults Section
  3. Common Language Runtime Support option

If this option is not set to "No Common Language Runtime Support", then it is "managed" C++, which in any modern version of Visual Studio is C++/CLI (unless the setting is "Old Syntax", then it is the original managed C++ syntax).

References:
Managed Extensions for C++ (old syntax)
C++/CLI

user1810087
  • 5,146
  • 1
  • 41
  • 76
crashmstr
  • 28,043
  • 9
  • 61
  • 79
3

Go to project properties -> C++ -> Command Line

If it contains /clr then the project is build under C++/CLI, otherwise it's "unmanaged".

Hatted Rooster
  • 35,759
  • 6
  • 62
  • 122