Thanks for the response. I found a solution as well. I compiled the codejock code in Visual Studio with there provided sln file (Visual Studio Solution file). You can see better the errors occurring during compile time. There is a bug in their code in version 24 of Codejock. You can fix the code problem youself and then recompile project or run the deployment wizard to compile the libraries again. Codejock says that the code fix will be in next version of Codejock xtp toolkit released. here is a codejock forums link explaining the problem and solution https://forum.codejock.com/toolkit-compilation-fails-under-vs17-12-1_topic24527.html?KW=xtpmarkup" rel="nofollow - Toolkit compilation fails under VS17.12.1 - Codejock Developer Community .
Here is the text in case the link above does not work. I have tested this solution and it worked.
Hope this helps.
Problem:
"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. "
Solution:
"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"
|