Print Page | Close Window

Compile errors after upgrading to 16.4.0

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=22493
Printed Date: 28 April 2024 at 12:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Compile errors after upgrading to 16.4.0
Posted By: Enclaved Shadow
Subject: Compile errors after upgrading to 16.4.0
Date Posted: 19 December 2014 at 9:57am
We recently upgraded from Xtreme ToolkitPro v15.0.2 to Xtreme ToolkitPro v16.4.0.  After making the change we are now seeing lots of compiler errors ... we can no longer compile some of our projects.  I have provided a list of errors below. These errors are causing me to re-evaluate upgrading to the latest version just for the new themes.


12>c:\tfs\analytics\dev\jsis-ui\idea\idea\activex\history\reportcontrol.cpp(85): error C2065: 'm_pRecords' : undeclared identifier
12>c:\tfs\analytics\dev\jsis-ui\idea\idea\activex\history\reportcontrol.cpp(86): error C3861: 'SortRows': identifier not found
12>c:\tfs\analytics\dev\jsis-ui\idea\idea\activex\history\reportcontrol.cpp(155): error C2661: 'CXTPReportRow::InitRow' : no overloaded function takes 2 arguments

12>c:\tfs\analytics\dev\jsis-ui\idea\idea\activex\history\historyrow.cpp(182): error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
12>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

12>c:\tfs\analytics\dev\jsis-ui\idea\idea\activex\history\historyrow.cpp(233): error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
12>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

12>c:\tfs\analytics\dev\jsis-ui\idea\idea\activex\history\historygrouprow.cpp(34): error C2661: 'CXTPReportRow::InitRow' : no overloaded function takes 2 arguments

12>c:\tfs\analytics\dev\jsis-ui\idea\idea\common\reportwindow.cpp(762): error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
12>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

12>c:\tfs\analytics\dev\jsis-ui\idea\idea\common\reportwindow.cpp(787): error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
12>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

11>CommentsNewRow.cpp(127): error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
11>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
11>CommentsNewRow.cpp(171): error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
11>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
11>  CommentsReport.cpp


errors due to changes made in CXTPReportControl
11>CommentsReport.cpp(269): error C2065: 'm_pRecords' : undeclared identifier
11>CommentsReport.cpp(270): error C3861: 'SortRows': identifier not found
11>CommentsReport.cpp(285): error C2065: 'm_pPlainTree' : undeclared identifier


11>CommentsReport.cpp(344): error C2661: 'CXTPReportRow::InitRow' : no overloaded function takes 2 arguments
11>CommentsReport.cpp(373): error C3861: '_RefreshIndexes': identifier not found
11>CommentsReport.cpp(455): error C2661: 'CXTPReportRow::InitRow' : no overloaded function takes 2 arguments

11>CommentsRow.cpp(115): error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
11>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

11>CommentsRow.cpp(163): error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
11>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

11>..\..\Common\ReportWindow.cpp(762): error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
11>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

11>..\..\Common\ReportWindow.cpp(787): error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
11>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)



Replies:
Posted By: mcmastl
Date Posted: 15 April 2015 at 2:02pm
We have informed our development team of the issue and will be looking into it.  Thank you for bringing this to our attention.  If the issue has been resolved please let us know.  Thank you.

-------------
Luke McMasters, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Fredrik
Date Posted: 15 April 2015 at 5:59pm
It might be easier to get your answers through checking the source code and your errors. For instance


error C2664: 'CXTPReportPaintManager::DrawGrid' : cannot convert parameter 2 from 'int' to 'XTPReportOrientation'
12>          Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)

so... as the error message says, use an static_cast or C-style case for your int. Or better - use the corresponding value in the enum XTPReportOrientation. 

I wouldn't be surprised that m_pRecords now is accessed by a function GetRecords()...? 

But of course, it would be good if breaking changes were mentioned in the release notes...



-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0


Posted By: kstowell
Date Posted: 15 April 2015 at 11:22pm
Thanks for the further feedback, have you checked the supplied samples in 16.4 and compared the implementation to yours?  

That's where I would recommend you start to make sure you are not missing something there.  Also, if you can to copy / paste your code, or provide a small sample that recreates the problem we can try to help further.  

It almost appears to be a missing #include file at first glance, but without actually seeing how you have implemented your code it is impossible know what the problem might be.


-------------
Kirk Stowell, President and CEO
CODEJOCK SOFTWARE SOLUTIONS<


Posted By: mcmastl
Date Posted: 20 April 2015 at 4:14pm
We built 15.0.0.2 against 16.4.0 and was unable to recreate the issue, if you could copy/paste your code, or provide a small sample to recreate the problem we can try to help debug the issue.  Thanks.

-------------
Luke McMasters, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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