I am trying to get an MFC Static Text control to display an ASCII Unicode character, specifically Omega (Ω). When i use just that the & doesn’t display and the rest of the text does. But if i set the ‘No Prefix’ Property of the Control to True, then it removes the & and everything after it.
Is this possible to do through a project setting or am i just inputting the string wrong?
Here is what I am using for a string: VDC Resistance (kΩ) → where I want Ω to be the omega symbol.
First of all
Ωisn’t an ASCII character, it is a Unicode character: GREEK CAPITAL LETTER OMEGA.Ωis the Html escape sequence for an omega, so a static text control doesn’t do translate Html escape sequences. If you are entering the text in C/C++ source then use the C escape sequenceL"\u03A9". (3A9 in hex equals 937 decimal). This assumes that you are building a Unicode application in in ANSI it won’t work. I’m not sure how you would do it in that case.