Home > Archive > Visual Studio > September 2004 > Show symbols in a Win32 application
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Show symbols in a Win32 application
|
|
|
|
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 was since 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);
| |
| Bruce Eitman \(eMVP\) 2004-09-30, 2:57 am |
| I 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
| |
|
|
|
| You 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
>
>
|
|
|
|
|