Using Boost with managed C++ · Sun Aug 28, 09:05 AM
If you have MC++ (or "C++ with Managed Extensions") code that you want to use Boost with, you'll need to #define BOOST_USE_WINDOWS_H. However, if you have C++ code that may be compiled either as managed code or as unmanaged code, you should probably gate use of this on the _MANAGED macro. Like so:
#if defined(_MANAGED) #define BOOST_USE_WINDOWS_H #endif
Put this in a common header, likely to be included before any boost-specific headers (stdafx.h, for example).
...



