To compile applications with VS2012 that are XP compatible, you have to set
the platform toolset in the solution to be "Visual Studio 2012 - Windows XP
(v110_xp)" which requires aVS2012 update 1 at a minimum.

Doing so results in  diagnostics_win.cpp reporting that FACILITY_VISUALCPP
is undefined. Adding the following code just above the line #include
"diagnostics_win.h" solves the problem.



#if _MSC_VER > 1600
  //required for compiling with v110_xp to create XP compatible executables
  #ifndef FACILITY_VISUALCPP
    #define FACILITY_VISUALCPP  ((LONG)0x6d)  //now defined in winerror.h
  #endif
#endif

#include "diagnostics_win.h"



Jon Sonntag
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to