Print Page | Close Window

CJ fails with VS 16.8

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=24090
Printed Date: 22 December 2024 at 1:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CJ fails with VS 16.8
Posted By: alistair.m
Subject: CJ fails with VS 16.8
Date Posted: 13 November 2020 at 7:13am
With our application compiled with VS 16.8 and C++20 enabled (/std:c++latest) the included CJ #includes fail to compile.

Some of the errors can be fixed by more forward declarations and some my qualifying members by classname, but I gave up when I ran into a circular dependency.

Can someone look into this?



-------------
Product: Xtreme ToolkitPro (MFC) version 18.6
Platform: Windows 10 (64 bit)
Language: Visual Studio 2019



Replies:
Posted By: alistair.m
Date Posted: 13 November 2020 at 7:14am
BTW this was tested with CJ 19.3.0.


-------------
Product: Xtreme ToolkitPro (MFC) version 18.6
Platform: Windows 10 (64 bit)
Language: Visual Studio 2019


Posted By: alistair.m
Date Posted: 13 November 2020 at 2:30pm
I have now managed to fix the CJ headers so that is all compiles OK.


-------------
Product: Xtreme ToolkitPro (MFC) version 18.6
Platform: Windows 10 (64 bit)
Language: Visual Studio 2019


Posted By: alistair.m
Date Posted: 17 November 2020 at 5:18am
The files that needed updating were as follows:

D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\Calendar\DatePicker\XTPDatePickerControl.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\CommandBars\Frame\XTPFrameHook.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\CommandBars\XTPCommandBar.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\CommandBars\XTPControl.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\CommandBars\XTPDialogBase.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\CommandBars\XTPFrameWnd.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\CommandBars\XTPPaintManager.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\CommandBars\XTPPaintManagerEvents.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\Common\Base\Types\XTPPoint2.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\Common\XTPCustomHeap.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\Common\XTPDrawHelpers.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\Common\XTPMaskEditT.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\Common\XTPNotifyConnection.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\Common\XTPPropExchange.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\Common\XTPSmartPtrInternalT.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\Common\XTPSystemHelpers.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\Markup\XTPMarkupDelegate.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\ReportControl\XTPReportSection.h
D:\CodeJock\fixes\Xtreme ToolkitPro v18.6.0\Source\SyntaxEdit\XTPSyntaxEditDrawTextProcessor.h

I can supply a zip of changes (CJ 18.6.0) on request.

Regards


-------------
Product: Xtreme ToolkitPro (MFC) version 18.6
Platform: Windows 10 (64 bit)
Language: Visual Studio 2019


Posted By: Love
Date Posted: 11 January 2021 at 6:45am
Using the /permissive compiler flag enabled building the application with /std:c++latest for us. Note that this will prevent the use of C++20 Modules.

Reference:
https://devblogs.microsoft.com/cppblog/standard-c20-modules-support-with-msvc-in-visual-studio-2019-version-16-8/

Codejock reports that most of the standard compliance issues will be addressed in version 20 (due spring 2021) but that support for /std:c++latest is never guaranteed.




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