Home > Software engineering >  How to use Unicode Edit controls in Ansi project?
How to use Unicode Edit controls in Ansi project?

Time:09-27

A MFC - Ansi project, is bigger, a lot of code, and also is not I write, so don't suggested that I put the whole project into Unicode, can go this way I also do not go up to ask questions,
It one of the dialog box, an Edit dialog, are read-only, need not accept user input,
I want to show in this Edit Unicode strings, don't call me to Unicode transformation as Ansi show again, can do I also can't come up the questions,
The point is that some Unicode characters, Ansi fundamental show not to come out, come out is the statement or a question mark, such as Unicode 0 x2776, turn to Ansi is 0 x3f, a question mark,
Now, just want to show on this CEdit Unicode strings, consult the solution,

CodePudding user response:

For this problem, I also in & lt; Technical questions & gt; In http://ask.csdn.net/questions/662821, found the reward, but nobody reason ah, isn't it too little reward for, know a friend can go here to answer, bounty ^_^

CodePudding user response:

At the end of the message and function have W

CodePudding user response:

2776=malaria

CodePudding user response:

CreateFontW
TextOutW
DrawTextW
DeleteObject

CodePudding user response:

Suggest you to unicode, there are too many benefits, and write their own tools to turn?

CodePudding user response:

ANSI project Settings to Edit text is SetWindowTextA, Unicode ANSI how can that not to come out? Engineering can't change, coding doesn't let turn, how do you want to make

CodePudding user response:

Had better use unicode project, are now what s, must use unicode engineering directly, less a lot of problems

CodePudding user response:

Kk and see what happened to you
  • Related