Code Comments
Programming Forum and web based access to our favorite programming groups.I would like to display a "sigma" symbol in my Win32 application built with Microsoft Visual C++ 6.0. I found the corresponding UNICODE number is 03C3, which was equal to 963 in decimal, then put it to the following codes. However, the "sigma" symbol was not displayed correctly. I wassince I used the same code in a PPC2003 application built with eMmbedded Visual C++ 4.0, and the "sigma" symbol was displayed correctly. Could anybody please explain it to me? Thanks in advance. John //Show symbols For Test Purpose Only CString strSymbol = "1 "; int nSigma = 963; //Unicode for sigma strSymbol += TCHAR(nSigma); m_Combo6.DeleteString (0); m_Combo6.InsertString (0, strSymbol);
Post Follow-up to this messageI suspect that the font that you are using doesn't include the sigma. -- Bruce Eitman (eMVP) Senior Engineer beitman AT applieddata DOT net Applied Data Systems www.applieddata.net An ISO 9001:2000 Registered Company Microsoft WEP Gold-level Member Do have an opinion on the effectiveness of Microsoft Windows Mobile and Embedded newsgroups? Let us know! https://www.windowsembeddedeval.com...nity/newsgroups
Post Follow-up to this messageOr you forgot to build a UNICODE enabled build of the application. Windows CE apps always have UNICODE set. -- Steve Maillet EmbeddedFusion www.EmbeddedFusion.com Do have an opinion on the effectiveness of Microsoft Windows Mobile and Embedded newsgroups? Let us know! https://www.windowsembeddedeval.com...nity/newsgroups
Post Follow-up to this messageYou are right, Steve, I forgot to force the UNICODE build since I thought Win2K is based on UNICODE in default. The following 3 steps solved my problem. 1) Under the project settings, under the 'C/C++' tab, for 'Preprocessor definitions', add "UNICODE,_UNICODE" and remove "_MBCS". 2) Under the project settings, under the 'Link' tab, category 'output', set the 'Entry-point symbol' to 'wWinMainCRTStartup'. 3) Use the UNICODE equivalents to replace some functions. John "Steve Maillet (eMVP)" <nospam1@EntelechyConsulting.com> wrote in message news:eiWqnDppEHA.2900@TK2MSFTNGP12.phx.gbl... > Or you forgot to build a UNICODE enabled build of the application. Windows > CE apps always have UNICODE set. > > -- > Steve Maillet > EmbeddedFusion > www.EmbeddedFusion.com > > Do have an opinion on the effectiveness of Microsoft Windows Mobile and > Embedded newsgroups? Let us know! > https://www.windowsembeddedeval.com...nity/newsgroups > >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.