Re: regedit 1/2: Use unicode strings when updating listview

2008-08-27 Thread Alexander Nicolaysen Sørnes
På Torsdag 28 august 2008 , 00:29:03 skrev Alexander Nicolaysen Sørnes: > Should be applied after Juan's regedit patch > > > Alexander N. Sørnes Sorry, mean't Lei's. No offence intended. :D

Re: msi [2/2]: Use lstrlenW instead of sizeof to compute the length of local const unicode strings

2006-10-19 Thread Mike McCormack
James Hawkins wrote: static const WCHAR create_fmt[] = {'C','R','E','A','T','E',' ','T','A','B','L','E',' ','`','%','s','`',' ','(',' ',0}; -size = sizeof(create_fmt) + lstrlenW(table) - 2; +size = lstrlenW(create_fmt) + lstrlenW(table) - 1; Since the string is const, and we

Re: Print unicode strings in tests

2005-06-01 Thread Alexandre Julliard
Robert Shearman <[EMAIL PROTECTED]> writes: > Paul Vriens wrote: > > >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): >

Re: Print unicode strings in tests

2005-05-31 Thread Robert Shearman
Paul Vriens wrote: 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

Print unicode strings in tests

2005-05-31 Thread Paul Vriens
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',

Re: Make Unicode strings 'static const' (part 3)

2004-04-19 Thread Francois Gouget
On Mon, 19 Apr 2004, Dimitrie O. Paun wrote: > On Mon, 19 Apr 2004, Francois Gouget wrote: > > > As for the previous patch it's important to check that the function does > > not actually try to write to these strings. And indeed there are a few > > cases where the function modifies the string, typ

Re: Make Unicode strings 'static const' (part 3)

2004-04-19 Thread Dimitrie O. Paun
On Mon, 19 Apr 2004, Francois Gouget wrote: > As for the previous patch it's important to check that the function does > not actually try to write to these strings. And indeed there are a few > cases where the function modifies the string, typically to change the > drive letter in strings like 'A:

Re: Unicode strings

2003-10-06 Thread Alexandre Julliard
Eric Pouech <[EMAIL PROTECTED]> writes: > the (const WCHAR[]){'T','e','x','t'} (don't forget the trailing '\0') > is the preferred. We all know it's a PITA, but it's better to put the > constraint once, at code writing time. Note that the (const WCHAR[]) cast is not portable, so you shouldn't use

Re: Unicode strings

2003-10-03 Thread Eric Pouech
Kevin Koltzau wrote: I've come upon an instance where I need to create a large lookup table of unicode strings, and was curious what the recommended way to handle this was. Using MSVC I would simply declare the string as L"Text" I only see two options currently, either declar

Unicode strings

2003-10-03 Thread Kevin Koltzau
I've come upon an instance where I need to create a large lookup table of unicode strings, and was curious what the recommended way to handle this was. Using MSVC I would simply declare the string as L"Text" I only see two options currently, either declare the string as (const