[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Print unicode strings in tests
From:       "Paul Vriens" <paul.vriens () xs4all ! nl>
Date:       2005-05-31 13:30:41
Message-ID: 10064.192.85.50.2.1117546241.squirrel () 192 ! 85 ! 50 ! 2
[Download RAW message or body]

Hi,

I'd like to print unicode-strings in some tests (for debugging purposes).
The following however does not show nice output on wine (it does on
windows):

static const WCHAR dataW[] = {'S','o','m','e',' ','d','a','t','a',0};
UNICODE_STRING usdata = { sizeof(dataW)-sizeof(WCHAR), sizeof(dataW),
(LPWSTR)dataW };

trace("Length is %d\n", usdata.Length);
trace("Maximum Length is %d\n", usdata.MaximumLength);
trace("The strings is %ls\n", usdata.Buffer);

Our trace doesn't seem to be able to cope with %ls (or %S).

Any ideas ?

Cheers,

Paul.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic