Print Page | Close Window

VS2013 (Preview) support for TKP 16.2.x

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=21827
Printed Date: 11 September 2025 at 5:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VS2013 (Preview) support for TKP 16.2.x
Posted By: Insad
Subject: VS2013 (Preview) support for TKP 16.2.x
Date Posted: 01 August 2013 at 5:10am
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 Wink)
 
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 Big smile
 
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



Replies:
Posted By: SuperMario
Date Posted: 25 September 2013 at 11:31am
We have also added this support for the next maintenance release.


Posted By: markr
Date Posted: 21 October 2013 at 2:45pm
We have also added this support for the next maintenance release

When is this expected?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net