Вниз
Скачать: CL | DM;

ConsoleAPI   Найти похожие ветки 

← →
fishca ©   (2003-01-11 00:06) [0]

Как заставить в консольном приложении под W2k писать русскими буквами текст?

program Project2;

{$APPTYPE CONSOLE}

uses
SysUtils,Windows;

begin
{ TODO -oUser -cConsole Main : Insert code here }
SetConsoleTitle("Привет!");
ReadLn;
end.


Не могу установить кодовую страницу не только для заголовка окна, но и в само окно не могу вывести текст по русски(в Win кодировке). Подскажите, в чем проблема?

Пытался менять кодовую страницу с помощью функции:


The SetConsoleOutputCP function sets the output code page used by the console associated with the calling process. A console uses its output code page to translate the character values written by the various output functions into the images displayed in the console window.

BOOL SetConsoleOutputCP(

UINT wCodePageID // code page to set
);


Parameters

wCodePageID

Specifies the identifier of the code page to set. The identifiers of the code pages available on the local computer are stored in the registry under the following key.


← →
Игорь Шевченко ©   (2003-01-11 10:40) [1]

А перекодировать каждую строчку в OEM не помогает ? :-)



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.011 c
1-75930
OGR
2003-02-14 17:25
2003.02.24
Парсинг HTML файла


7-76202
Programist21
2002-12-21 10:42
2003.02.24
Rar-архив как отдельный диск


6-76060
sergey2
2003-01-05 12:37
2003.02.24
Вопрос по TWebBrowser. Можно ли управлять загрузкой сайта?


1-75912
MasterYoda
2003-02-14 14:31
2003.02.24
Как сохранить информацию из нескольких StringGrid в файл ?


14-76189
Oleg_Gashev
2003-02-09 02:19
2003.02.24
Последняя страница интернета




   Наверх