Sign in to follow this  
Followers 0
joell

MultiByteToWideChar / WideCharToMultiByte 3.3.1.3

4 posts in this topic

Hi,

Just made a test with the example of function _GUICtrlListView_GetGroupInfo with last beta 3.3.1.3

It Gives "Group 1 Text: 0x008CDCD0" instead of "Group 1 Text: Group 1"

Seems at least MultiByteToWideChar / WideCharToMultiByte are not behaving the usual way.

Regards,


registry victim

Share this post


Link to post
Share on other sites



Does this look like the right way to report bugs OR ask for support?

Share this post


Link to post
Share on other sites

I apologize Valik.

I was preparing my draft and posted it here by mistake. Sorry. (doing too many things in the same time)

Regards,


registry victim

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Well anyway, try replacing the initial If block in the _WinAPI_WideCharToMultiByte function with this:

If IsPtr($pUnicode) Then
    $sUnicodeType = "ptr"
ElseIf IsDllStruct($pUnicode) Then
    $sUnicodeType = "ptr"
    $pUnicode = DllStructGetPtr($pUnicode)
Else
    $sUnicodeType = "wstr"
EndIf
Edited by wraithdu

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0