Print Page | Close Window

Toolkit compilation fails under VS17.12.1

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=24527
Printed Date: 19 January 2025 at 11:43am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolkit compilation fails under VS17.12.1
Posted By: Felipe
Subject: Toolkit compilation fails under VS17.12.1
Date Posted: 20 November 2024 at 10:10am
Hello, 

I just installed the new Visual Studio 2022 17.12.1 and recompiled the toolkit. It failed with the error below. Any help please?

1>------ Build started: Project: Codejock.ToolkitPro.Shared, Configuration: Debug x64 ------
1>XTPMarkupBuilder.cpp
1>C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v24.0.0\Source\Markup\XTPMarkupBuilder.cpp(1005,19): error C2664: 'LPCWSTR NormalizeXmlContentText(LPCWSTR,CArray<WCHAR,WCHAR> &,int,BOOL,BOOL)': cannot convert argument 4 from 'XTPXML::IXMLDOMNodePtr' to 'BOOL'
1>(compiling source file '/Source/Markup/XTPMarkupBuilder.cpp')
1>    C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v24.0.0\Source\Markup\XTPMarkupBuilder.cpp(1007,24):
1>    No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>    C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v24.0.0\Source\Markup\XTPMarkupBuilder.cpp(571,16):
1>    see declaration of 'NormalizeXmlContentText'
1>    C:\Program Files (x86)\Codejock Software\MFC\Xtreme ToolkitPro v24.0.0\Source\Markup\XTPMarkupBuilder.cpp(1005,19):
1>    while trying to match the argument list '(LPCWSTR, CArray<WCHAR,WCHAR>, int, XTPXML::IXMLDOMNodePtr, XTPXML::IXMLDOMNodePtr)'
1>Done building project "ToolkitProShared_vc170.vcxproj" -- FAILED.



Replies:
Posted By: cvilasis
Date Posted: 05 December 2024 at 6:38am
Same issue with VS 2022 v17.12.2, v17.12.3 & v17.13.0 Preview 1.0



Posted By: jimmy
Date Posted: 22 December 2024 at 10:47am
Hello,

see the same on VS2002 v17.12.3.
SDK 10.0.26100.0



Posted By: bschaer
Date Posted: 24 December 2024 at 8:41am
So this basically means the product can no longer be installed.  And crickets from Codejock...  Until your subscription renewal comes up, that's when you hear from them.


Posted By: astoyan
Date Posted: 29 December 2024 at 1:36pm
Hello,

This was a known issue and it's been fixed already for the next maintenance release. All users who contacted support have received the patch, I'll publish it here so you don't wait for the new version:

\Source\Markup\XTPMarkupBuilder.cpp(1005):

        lpszContent = NormalizeXmlContentText(lpszContent, textBuffer,
                            XTPToIntChecked(nodeText.length()),
                            NULL != pContent->previousSibling,
                            NULL != pContent->nextSibling);

Basically, for some reason comparison to implicit casting of COM pointer to BOOL is not supported in the affected Visual Studio compilers, so explicit comparison was required.

Please, replace that call statement and re-build Toolkit Pro, this should solve the issue.

Regards,
  Alexander



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