Managed C++ Features Overview |
![]() |
This information applies only to Windows and Visual C++ version 7 (.NET) or higher
Starting with version 2.1.2 Str Library officially supports building applications in managed C++. This support involves the following two major aspects:
To enable the additional library features and to achieve the best possible performance when compiling with the /clr switch, you must include the following in str_config.h or stdafx.h:
#define STR_MCPP_FEATURES
Please note that even when these features are enabled, the Str and Char classes (and other supporting classes in the library) do not become managed; they continue to be regular C++ classes.
See also: Str and System.String conversion, Str conditional defines