News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

problem with string

Started by hamidamel, November 21, 2009, 08:32:29 AM

Previous topic - Next topic

hamidamel

i have a problem.
i want to use string in masm32,but i dont know what do i do.
can you help me? or give me an example?

tank you

UtillMasm

invoke MultiByteToWideChar,CP_Windows936_Chinese(RPC),0,_lpszFile,eax,addr buffer,sizeof buffer,NULL,NULL
          ;read simplified chinese ansi characters as widechar
invoke WideCharToMultiByte,CP_UTF8,0,_lpszFile,eax,addr buffer,sizeof buffer,NULL,NULL
          ;store any ansi characters as utf8

hutch--

hamidamel,

W3lcome on board. Just tell us a bit about what you want to do with strings and if they are simple ANSI strings or more complex character sets like Chinese, Japanese or similar.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php