Print Page | Close Window

XTPSystemHelpers::XTPLoadUnicodeText - MultiByteTo

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=24540
Printed Date: 20 January 2025 at 2:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPSystemHelpers::XTPLoadUnicodeText - MultiByteTo
Posted By: jw_statica
Subject: XTPSystemHelpers::XTPLoadUnicodeText - MultiByteTo
Date Posted: 20 January 2025 at 4:08am
The function XTPLoadUnicodeText always calls GetLastError() after calling MultiByteToWideChar function, even if the string conversion completes succesfully and the target buffer gets filled with data. According to MSDN documentation ( https://learn.microsoft.com/en-us/windows/win32/api/stringapiset/nf-stringapiset-multibytetowidechar" rel="nofollow - https://learn.microsoft.com/en-us/windows/win32/api/stringapiset/nf-stringapiset-multibytetowidechar ) GetLastError should be called when MultiByteToWideChar returns 0.

Due to the complexity of our software, we're unable to pinpoint where in our program thread error code gets overwritten. This prevents certain icons from codejock style libraries from being loaded correctly, therefore they only show blank squares instead of icons, requiring manual changes in Codejock source code. 



Replies:
Posted By: astoyan
Date Posted: 20 January 2025 at 8:55am
This was a known issue and it has been fixed for the next maintenance update.




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