all groups > dotnet internationalization > february 2008 >
You're in the

dotnet internationalization

group:

Question LoadStringW and Preserving Koren Wide Chars



Re: Question LoadStringW and Preserving Koren Wide Chars Mihai N.
2/14/2008 9:04:26 PM
dotnet internationalization: [quoted text, click to view]
Thread.CurrentThread.CurrentCulture should not affect the result.
Most likely you declared that LoadStringW uses ANSI strings.
Take a look at [MarshalAs(UnmanagedType.LPWStr)]



--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Question LoadStringW and Preserving Koren Wide Chars don rau
2/15/2008 6:36:15 AM
I am trying to load a Korean string resource from a DLL.

I use LoadStringW after setting Thread.CurrentThread.CurrentCulture to
Korean.

The string I'm trying to receive should be comprised of the following 5
characters:
0xc6a9 0xc9c0 0x002f 0xd488 0xc9c8

however what I get is:
0x00a9 0x00c6 0x00c0 0x00c9 0x002f

Note the relationship between what I expected and what I received.

Anyone have ideas on what I'm doing wrong?

AddThis Social Bookmark Button