Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Compile errors after upgrading to 16.4.0
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Compile errors after upgrading to 16.4.0

 Post Reply Post Reply
Author
Message
Enclaved Shadow View Drop Down
Groupie
Groupie
Avatar

Joined: 22 August 2006
Location: Canada
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote Enclaved Shadow Quote  Post ReplyReply Direct Link To This Post Topic: Compile errors after upgrading to 16.4.0
    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)
Back to Top
mcmastl View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 April 2015
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcmastl Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 226
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post 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<
Back to Top
mcmastl View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 April 2015
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcmastl Quote  Post ReplyReply Direct Link To This Post 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
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.172 seconds.