Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CJ fails with VS 16.8
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CJ fails with VS 16.8

 Post Reply Post Reply
Author
Message
alistair.m View Drop Down
Groupie
Groupie


Joined: 14 January 2008
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote alistair.m Quote  Post ReplyReply Direct Link To This Post Topic: CJ fails with VS 16.8
    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
Back to Top
alistair.m View Drop Down
Groupie
Groupie


Joined: 14 January 2008
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote alistair.m Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
alistair.m View Drop Down
Groupie
Groupie


Joined: 14 January 2008
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote alistair.m Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
alistair.m View Drop Down
Groupie
Groupie


Joined: 14 January 2008
Location: United Kingdom
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote alistair.m Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Love View Drop Down
Newbie
Newbie


Joined: 29 June 2009
Location: Sweden
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Love Quote  Post ReplyReply Direct Link To This Post 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.

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.