Converting the ToolkitPro 16.2.x solution/projects for VS2012 to VS2013 Preview doesn't make it compile. After converting the VS2012 solution to VS2013 Preview you will get all sorts of errors about undeclared variables and types. To fix this you have to elevate the WINVER to at least Win XP SP2. Plain simple: Otherwise it wouldn't compile because VS2013 Preview expects Win XP SP2 to be the lowest platform to be supported. (As did VS2012 although the MFC/AFX headers where not yet affected at the time  ) So when you put the following changes in XTPDLLExports.h before compiling it should work. Change 1: (Changes WINVER and _WIN32_WINNT to 0x0502 => WinXP SP2)
// Modify the following defines if you have to target a platform prior to the ones specified below. // Refer to MSDN for the latest info on corresponding values for different platforms. #ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later. #if _MSC_VER > 1500 #if _MSC_VER >= 1800 // INSAD BUGFIX - Fixes VS2013 #define WINVER 0x0502 // INSAD BUGFIX - Fixes VS2013 - At least WinXP SP2 #else // INSAD BUGFIX - Fixes VS2013 #define WINVER 0x0500 #endif // INSAD BUGFIX - Fixes VS2013 #else #define WINVER 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later. #endif #endif #ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later. #if _MSC_VER > 1500 #if _MSC_VER >= 1800 // INSAD BUGFIX - Fixes VS2013 #define _WIN32_WINNT 0x0502 // INSAD BUGFIX - Fixes VS2013 - At least WinXP SP2 #else // INSAD BUGFIX - Fixes VS2013 #define _WIN32_WINNT 0x0500 #endif // INSAD BUGFIX - Fixes VS2013 #else #define _WIN32_WINNT 0x0400 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later. #endif #endif
|
Change 2: (Set Internet Explorer to at least IE 6 SP3)
#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later. #if _MSC_VER >= 1800 // INSAD BUGFIX - Fixes VS2013 #define _WIN32_IE 0x0603 // INSAD BUGFIX - Fixes VS2013 - At least IE 6.0 SP3 #else // INSAD BUGFIX - Fixes VS2013 #define _WIN32_IE 0x0500 // Change this to the appropriate value to target IE 5.0 or later. #endif // INSAD BUGFIX - Fixes VS2013 #endif #endif
|
I can understand that CodeJock doesn't support preview versions of Visual Studio, but for the daredevils among us, who are trying to work ahead for the future, this fix at least helps compiling and testing your apps on VS2013  Best regards, Insad
------------- Products in use: XTP version 13.4.2/15.3.1/16.4.0/17.3.0 Platforms: Win2003(R2)/Win2008(R2)/Win7/Win2011/Win8(.1)/Win2012(R2)/Win10 (x86/x64) Langs: VC++ (MFC) 6/2005/2008/2013/2015/2017
|