Print Page | Close Window

Determine Codejock version during compile

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=16484
Printed Date: 02 May 2024 at 5:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Determine Codejock version during compile
Posted By: jpnascim
Subject: Determine Codejock version during compile
Date Posted: 22 March 2010 at 8:11am
Hello,

I am attempting to upgrade from Codejock v. 9.6 to Codejock 11.1 and I need to correct certain codejock calls in our code that have become incompatible with version 11.1. However, for reasons here, I need to make the code compatible with both versions. Is there are any way (during compilation) to determine which version of Codejock I am using? I would like to do something as:

#ifdef CODEJOCK_VERSION_11_1
    myReportControl.GetPaintManager()->SetColumnStyle(xtpReportColumnOffice2003);
#else
   
myReportControl.GetPaintManager()->m_columnStyle = xtpColumnFlat;
#endif

I've found 'CXTAuxData' class but it returns version during runtime only. Any ideas?

Thank you,

Joćo Pedro



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