flat assembler
Message board for the users of flat assembler.
![]() Goto page Previous 1, 2 |
Author |
|
Alexander 11 Feb 2009, 14:20
Azu wrote:
Hi Azu, the terminator is used to convert a BSTR to a C-String or a C-Style-String easyly. |
|||
![]() |
|
Alexander 11 Feb 2009, 14:39
bitRAKE,
thanks for your suggestions. Japheth's website is great, but not directly what I wanted. Isn't there a simple solution to create a structure in FASM and to export it to the caller (in my case this would be any language which uses the component object model for string manipulation like VB6)? Thanks Alexander |
|||
![]() |
|
bitRAKE 11 Feb 2009, 17:26
Japheth defines BSTR as "BSTR typedef ptr word" and looking over the code we see stuff like:
Code: invoke SysAllocStringByteLen, NULL, MAX_PATH mov [bstr],eax . . . invoke WideCharToMultiByte,CP_ACP,0,\ [bstr],-1,addr szValue, sizeof szValue,0,0 . . . invoke SysFreeString, [bstr] (Looks like he is using a UTF-16 string - not a BSTR?) |
|||
![]() |
|
Alexander 11 Feb 2009, 17:36
Thanks bitRAKE
|
|||
![]() |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.