Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MultiByteToWideChar, is CP_ACP the same as GetACP()?

162 views
Skip to first unread message

PEK

unread,
Jan 4, 2005, 10:34:38 AM1/4/05
to
I'm a bit confused about the first parameter in MultiBytToWideChar. It
is telling which code-page to use. You could use the value CP_ACP
("ANSI Code page"), but what does it mean? Is it the value returned by
GetACP() or is it code-page 1252?

What I want to know is that if you the same result if you call:

MultiByteToWideChat(CP_ACP, ...)

as when you call:

MultiByteToWideChat(GetACP(), ..)


PEK

Michael (michka) Kaplan [MS]

unread,
Jan 4, 2005, 5:32:03 PM1/4/05
to
GetACP will answer the question "what is the code page value of the default
ANSI system code page.

CP_ACP instructs the API to use the default ANSI system code page for the
conversion.

The two will provide identical results in the actual conversion.


--
MichKa [MS]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Microsoft Windows International Division

This posting is provided "AS IS" with
no warranties, and confers no rights.


"PEK" <pek...@home.se> wrote in message
news:41dab752...@news.individual.net...

PEK

unread,
Jan 5, 2005, 4:02:48 AM1/5/05
to
On Tue, 4 Jan 2005 14:32:03 -0800, "Michael \(michka\) Kaplan [MS]"
<mic...@online.microsoft.com> wrote:

>GetACP will answer the question "what is the code page value of the default
>ANSI system code page.
>
>CP_ACP instructs the API to use the default ANSI system code page for the
>conversion.
>
>The two will provide identical results in the actual conversion.

Short and clear, exactly what I wanted to know. Thank you.

PEK

0 new messages