flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Everhest
Hi. why BSTR translate to Unicode?
_________________ Forgive for my bad english, I from russia... |
|||
![]() |
|
kohlrak
BSTR? Anyway, the reason why you would use Unicode would be because it can be used with any localization then.
|
|||
![]() |
|
Everhest
BSTR - not anyway. im use com IWebBrowser2 and functions on this interface. get_LocationURL return BSTR and i want translate to Unicode. Why?
|
|||
![]() |
|
LocoDelAssembly
Transforming it to plain UNICODE string is what you want?
Code: mov ecx, [eax] lea esi, [eax+4] mov edi, buffer_address cmp ecx, buffer_size + 2 jb .buffer_too_small rep movsw ... Note that you don't actually need to copy, if you need the string for, say, SetWindowTextW, then just pass a pointer to the BSTR but adding four to the address first (the NULL terminator is already included). http://msdn.microsoft.com/en-us/library/ms221069.aspx |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.