flat assembler
Message board for the users of flat assembler.
Index
> Windows > BSTR to Unicode |
Author |
|
Everhest 10 Dec 2009, 12:21
Hi. why BSTR translate to Unicode?
_________________ Forgive for my bad english, I from russia... |
|||
10 Dec 2009, 12:21 |
|
kohlrak 10 Dec 2009, 14:42
BSTR? Anyway, the reason why you would use Unicode would be because it can be used with any localization then.
|
|||
10 Dec 2009, 14:42 |
|
Everhest 10 Dec 2009, 14:55
BSTR - not anyway. im use com IWebBrowser2 and functions on this interface. get_LocationURL return BSTR and i want translate to Unicode. Why?
|
|||
10 Dec 2009, 14:55 |
|
LocoDelAssembly 10 Dec 2009, 15:04
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 |
|||
10 Dec 2009, 15:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.