Hi Gary,
Thanks for the reply. We are still not able to get Kanji characters to
display, even when setting the culture to Japanese in the resource settings.
The only way we have found that we can get anything to work is to create an
explicit font using one of the various CreateFont routines and use SetFont on
the control, for example:
CClientDC dc(this);
CFont font;
VERIFY(font.CreatePointFont(120, _T("MS Mincho"), &dc));
m_cEdit.SetFont(&font);
font.DeleteObject();
....though it seems that the act of creating the font is the important thing.
The parameters don't seem to make much difference, even the font typeface or
height. Please note we are not storing these Kanji strings as resources.
They are input by the user via a programmatic interface and then passed
through the application for eventual display in various controls. The
application is otherwise English. So we are not trying necessarily to
retarget the application at any one language. We are simply trying to get
the controls to properly display an MBCS character string, in this case
Japanese. At any rate, we did not have to have this font code in our 6.0
version, but now we seem to need it in order to get this functionality to
work with 7.1. Any additional ideas or comments on this? Thanks!
""Gary Chang[MSFT]"" wrote:
Hi,
Here is the problem we've encountered. An application
that used to successfully display Japanese Kanji characters
no longer does so when recompiled with 7.1
For a VC7.1 project, you need to specify its "Culture" to Japanese, this
will make your programdisplay the Japanese Kanji characters as expected.
You can configure it in the Project property configuration(Project Property
Pages/Resources/General/Culture).
Thanks!
Best regards,
Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default...sdn/nospam.asp
&SD=msdn
This posting is provided "AS IS" with no warranties, and confers no rights.