I have inherited a Photoshop CS6 format Plugin developed at my company. This plugin was modeled after the SimpleFormat project found in the adobe_photoshop_cs6_sdk_win\pluginsdk\samplecode\format\simpleformat folder.
I believe the plugin was originally developed under Visual Studio 2010 and then ported to Visual Studio 2012 on the same machine.
The solution/project currently compiles in Visual Studio 2012 on the original machine. The Project Properties General Platform toolset is set to Windows7.1SDK on the original machine.
I have a brand new laptop. I have just installed Visual Studio 2013. I pulled the solution from our repository and opened it in Visual Studio 2013. When prompted if I wanted to port the 2012 project to 2013 I answered yes. The Project Properties General Platform toolset is now set to Visual Studio 2013 (v120).
When I build the project, I get several C1189: #errors.
I also tried building the SimpleFormat example in 2013 and also get the C1189 errors.
Error | 3 | error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. (..\Common\SimpleFormatScripting.cpp) | c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h | 250 | 1 | SimpleFormat |
Error | 6 | error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. (..\..\..\common\sources\PIWinUI.cpp) | c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h | 250 | 1 | SimpleFormat |
1>------ Build started: Project: SimpleFormat, Configuration: Debug Win32 ------
1> Compiling PiPL resource...
1> Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> SimpleFormat.r
1> CnvtPiPL. Release Version 13.0, Oct 25 2011 18:03:33.
1> Copyright 1992-2010 Adobe Systems Incorporated.
1> All rights reserved.
1> SimpleFormat.cpp
1> SimpleFormatScripting.cpp
1> SimpleFormatUI.cpp
1> FileUtilities.cpp
1> FileUtilitiesWin.cpp
1> PIDLLInstance.cpp
1> PIUSuites.cpp
1> PIWinUI.cpp
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(197): warning C4005: 'false' : macro redefinition (..\Common\SimpleFormatScripting.cpp)
1> c:\adobe_photoshop_cs6_sdk_win\pluginsdk\photoshopapi\photoshop\pitypes.h(224) : see previous definition of 'false'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(232): warning C4005: 'true' : macro redefinition (..\Common\SimpleFormatScripting.cpp)
1> c:\adobe_photoshop_cs6_sdk_win\pluginsdk\photoshopapi\photoshop\pitypes.h(220) : see previous definition of 'true'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(250): fatal error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. (..\Common\SimpleFormatScripting.cpp)
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(197): warning C4005: 'false' : macro redefinition (..\..\..\common\sources\PIWinUI.cpp)
1> c:\adobe_photoshop_cs6_sdk_win\pluginsdk\photoshopapi\photoshop\pitypes.h(224) : see previous definition of 'false'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(232): warning C4005: 'true' : macro redefinition (..\..\..\common\sources\PIWinUI.cpp)
1> c:\adobe_photoshop_cs6_sdk_win\pluginsdk\photoshopapi\photoshop\pitypes.h(220) : see previous definition of 'true'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xkeycheck.h(250): fatal error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro. (..\..\..\common\sources\PIWinUI.cpp)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========