Click here to Skip to main content
15,905,563 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used 'charmap' to get the unicode for the Greek letter β 'beta' (as advised on here a few days ago - thank you all for the useful answers) and it worked a treat.

However I am now trying to add 'Gamma', 'Psi', 'Delta' and 'Phi', and although the preview works when I actually run the program I get other characters altogether. I tried using MS San Serif in 'charmap' thinking that would be the font used in the dialog but it made no difference.

Any ideas anyone?

Thanks in advance :)
Posted

This is a font issue only I guess. Could you please try a trick, like - set the caption value at runtime only.
eg.- Dont set any caption value in property box while designing. Instead of set value at runtime using code. Say, I am using a Checkbox named as chkAlpha, then

chkAlpha.Caption.Value = "α" // somting likewise.

Try this & let us know.

Also check the charecter set used by your editor, if that is ASCII or UNICODE.
 
Share this answer
 
Beta can be coded by one byte... :)

Try to use "MS Shell Dlg" font (1)
in your unicode .rc file (2) :)
 
Share this answer
 
In charmap, if your really want to get at the Unicode ranges, select advanced view, you can now choose your character set (do not select the DOS character, it may be safest to select Windows:Greek. You will then only see the Greek character set.

The ß you selected yesterday was probably 0xDF, Latin Small Letter Sharp S.


Now I see you're posting in the C/C++/MFC section, which brings me to my next question: Is this is a 32 bit Windows executable with Unicode support? Otherwise it's a whole different ballgame...
 
Share this answer
 
Thanks all for your answers, I think they have pointed me in the right direction.

I checked the Project Settings and found the character set was 'Not Selected' so I changed it to 'Use Unicode Character Set' (I did not realise that Unicode might not be selected). I have just recompiled and have 610 errors and 31 warnings .... :(

I am now off to see my boss and find out just how much he wants Greek letters in the Dialog Boxes! :)

Thanks Again everyone :thumbsup:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900