Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - VS2013 (Preview) support for TKP 16.2.x
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

VS2013 (Preview) support for TKP 16.2.x

 Post Reply Post Reply
Author
Message
Insad View Drop Down
Groupie
Groupie
Avatar

Joined: 28 October 2004
Location: The Netherlands
Status: Offline
Points: 55
Post Options Post Options   Thanks (0) Thanks(0)   Quote Insad Quote  Post ReplyReply Direct Link To This Post Topic: VS2013 (Preview) support for TKP 16.2.x
    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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (1) Thanks(1)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2013 at 11:31am
We have also added this support for the next maintenance release.
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post Posted: 21 October 2013 at 2:45pm
We have also added this support for the next maintenance release

When is this expected?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.