2

Is it possible to get the version of the runtime library of a c++ win32 application at runtime? I'm talking about MT vs MTd vs MD vs MDd.

chtenb
  • 14,924
  • 14
  • 78
  • 116
  • You could always add your own #define for it when MT etc is set – paulm Jun 01 '16 at 12:53
  • @paulm What is the easiest way to go about that? – chtenb Jun 01 '16 at 13:04
  • 3
    The `_DLL` macro is defined if you compile with /MD in effect. The `_DEBUG` macro distinguishes between the debug and the release version of the CRT. MSDN page [is here](https://msdn.microsoft.com/en-us/library/b0084kay.aspx). – Hans Passant Jun 01 '16 at 14:02

0 Answers0