News:

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

Unicode macros: uclen, uchr$

Started by jj2007, September 22, 2008, 02:38:06 PM

Previous topic - Next topic

jj2007

I wrote two little macros, uchr$ and uclen:

   mov esi, uchr$("No, it is plain English - SORRY!", 13, 10)
   invoke MessageBoxW, NULL, esi, uchr$("The text in esi might be Chinese:"), MB_OK
   invoke MessageBoxA, NULL, str$(uclen(esi)), chr$("The text length is (in bytes):"), MB_OK

Full code in this post.