1

Topic: Question on character outputs in a console window

There is a window dialogue MFC-appendix. This application causes a console window in which results of the decision of the task are deduced. Whether it is possible to deduce in this console window a capital (capital) Greek letter "delta" - ? And whether it is possible to deduce in this console window horizontal line over Latin letters (for example, over letters r or v)? In that sense that it was in single line? If yes, as it can be made?

2

Re: Question on character outputs in a console window

Hello, RussianFellow, you wrote: whether RF> It is possible to deduce in this console window capital (capital) the Greek letter "delta" - ? RF> And whether it is possible to deduce in this console window horizontal line over Latin letters (for example, over letters r or v)? In that sense that it was in single line? It is impossible, in the console characters leaking  in which maximum of 255 characters a part from which have no graphic representation In language  the first 127 characters are deduced only are standard - ASCII, the remaining part - characters of which language of the country belongs , well and any tags.

3

Re: Question on character outputs in a console window

Hello, RussianFellow, you wrote: whether RF> It is possible to deduce in this console window capital (capital) the Greek letter "delta" - ? RF> And whether it is possible to deduce in this console window horizontal line over Latin letters (for example, over letters r or v)? Probably. For this purpose it is necessary to make the font in which for all necessary characters to specify keyboard shortcut Alt+0xxx. For display of these characters in the console to install the necessary font through WinAPI function. Then send KEY EVENT to the console: down ALT, down 0, up 0, x.... up x, up ALT. It is possible to try to deduce at once the necessary character by means of UNICODE codings, but at me such method not  (setting chcp 65001 did not help).

4

Re: Question on character outputs in a console window

Hello, RussianFellow, you wrote: RF> There is a window dialogue MFC-appendix. This application causes a console window in which results of the decision of the task are deduced. Whether RF> it is possible to deduce in this console window a capital (capital) Greek letter "delta" - ? RF> And whether it is possible to deduce in this console window horizontal line over Latin letters (for example, over letters r or v)? In that sense that it was in single line? RF> if yes as it can be made? It simply game any. What for you deduce results of operation in a console window? Deduce results in one of fields of a dialog box of your application. Or in a child window of a dialog box of your application. Then it will be possible to install a font with the characters necessary to you and to deduce it the Greek and other letters.

5

Re: Question on character outputs in a console window

And still a question: how correctly to deduce in a console window a line containing Unicode characters? Whether It is necessary to use for this purpose function WriteConsole or to use function wprintf enough? And how to make so that were correctly deduced not only Unicode characters, but also cyrillic characters in such line in a console window?

6

Re: Question on character outputs in a console window

Hello, RussianFellow, you wrote: RF> And how to make so that were correctly deduced not only Unicode characters, but also cyrillic characters in such line in a console window? To install correct  for the console depending on the coding in which at you source codes are saved. By default the studio stores in 1251 coding, means it is necessary so: setlocale (LC_ALL, "ru-RU")