Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTPSystemHelpers::XTPLoadUnicodeText - MultiByteTo
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTPSystemHelpers::XTPLoadUnicodeText - MultiByteTo

 Post Reply Post Reply
Author
Message
jw_statica View Drop Down
Groupie
Groupie


Joined: 23 May 2018
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote jw_statica Quote  Post ReplyReply Direct Link To This Post Topic: XTPSystemHelpers::XTPLoadUnicodeText - MultiByteTo
    Posted: 9 hours 41 minutes ago 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) 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. 
Back to Top
astoyan View Drop Down
Admin Group
Admin Group
Avatar

Joined: 24 August 2013
Status: Offline
Points: 312
Post Options Post Options   Thanks (0) Thanks(0)   Quote astoyan Quote  Post ReplyReply Direct Link To This Post Posted: 4 hours 54 minutes ago at 8:55am
This was a known issue and it has been fixed for the next maintenance update.

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.078 seconds.