Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
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);



Report this thread to moderator Post Follow-up to this message
Old Post
JohnL
09-30-04 01:09 AM


Re: Show symbols in a Win32 application
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



Report this thread to moderator Post Follow-up to this message
Old Post
Bruce Eitman \(eMVP\)
09-30-04 07:57 AM


Re: Show symbols in a Win32 application
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



Report this thread to moderator Post Follow-up to this message
Old Post
Steve Maillet \(eMVP\)
09-30-04 07:57 AM


Re: Show symbols in a Win32 application
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
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
JohnL
10-01-04 01:59 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Studio archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:37 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.