News:

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

Microsoft Layer for Unicode in MASM32

Started by KSS, April 23, 2006, 09:25:45 PM

Previous topic - Next topic

Casper

KSS,
Your test program does not work on Windows ME.  It quietly fails.  It works on my XP machine but not on my daughter's ME and '98 machines.

Paul

KSS

Casper,
I ran my test on "Microsoft Virtual PC 2004" with installed "Virtual Machine Addition" and it worked fine. (WinMe)
Now I retest it, all right. And attach compiled EXE.

[attachment deleted by admin]

GregL

I was trying the code above, and for what it's worth, I modified StdOut to work with Unicode. I thought someone might find it useful.


StdOutW PROC lpszwText:PTR WORD

    LOCAL hOutPut  :DWORD
    LOCAL bWritten :DWORD
    LOCAL sl       :DWORD

    INVOKE GetStdHandle, STD_OUTPUT_HANDLE
    mov hOutPut, eax

    INVOKE lstrlenW, lpszwText
    mov sl, eax

    INVOKE WriteConsoleW, hOutPut, lpszwText, sl, ADDR bWritten, NULL

    mov eax, bWritten
    ret

StdOutW endp