views:

112

answers:

1

Hello. My problem is that my Unicode c++ program that I'm writing in MSVC express is displaying all strings in an Asian font. I cannot myself figure out how to make it display in English. Thank you for your time.

A: 

I have resolved the issue. When casting anything other than a WCHAR* the compiler interprets it in an undesired way(displaying Japanese fonts rather than English). Initializing the used strings as WCHAR* not only is accepted by the compiler but gives the desired result of English fonts.

I don't know how well this will apply to anyone else's problems but it has solved mine. Thanks to bmargulies and AraK for responding(I was away when you did I appologize).

viperld002
Such casts are wyas to tell the compiler "I know what I'm doing", not "guess what I wanted". If you need a `WCHAR*`, provide the string as a `WCHAR[]`, not as an `int`, `float` or `char[]`.
MSalters