Reuven Nisser
2008-01-18 08:32:40 UTC
Hi,
MFC conversions between Unicode and non-Unicode pages are done now using
CP_THREAD_ACP instead of CP_ACP. Is there a way to change back to CP_ACP?
I tried defining _CONVERSION_DONT_USE_THREAD_LOCALE but it does not
apply to MFC DLL. I do not want to re-compile the DLL and redistribute it.
I tried changing the pointer g_pfnGetThreadACP (atlconv.h) to point to a
routine returning CP_ACP. However, it seems my program contains a
different variable g_pfnGetThreadACP than the one MFC uses. Maybe
there's a way to link to MFC variable?
From programming point of view, is there a way to change CP_THREAD_ACP?
I mean changing the "ANSI code page for the current thread"?
Thanks,
Reuven Nisser
MFC conversions between Unicode and non-Unicode pages are done now using
CP_THREAD_ACP instead of CP_ACP. Is there a way to change back to CP_ACP?
I tried defining _CONVERSION_DONT_USE_THREAD_LOCALE but it does not
apply to MFC DLL. I do not want to re-compile the DLL and redistribute it.
I tried changing the pointer g_pfnGetThreadACP (atlconv.h) to point to a
routine returning CP_ACP. However, it seems my program contains a
different variable g_pfnGetThreadACP than the one MFC uses. Maybe
there's a way to link to MFC variable?
From programming point of view, is there a way to change CP_THREAD_ACP?
I mean changing the "ANSI code page for the current thread"?
Thanks,
Reuven Nisser