Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.02.24;
Скачать: 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 вся ветка

Текущий архив: 2003.02.24;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.015 c
3-75824
an
2003-02-07 03:50
2003.02.24
БД Access


3-75784
stone
2003-02-05 16:31
2003.02.24
Вывод сообщений MSSQL


3-75807
JB
2003-02-06 13:35
2003.02.24
Базы и локальная сеть


14-76164
lipskiy
2003-02-05 22:22
2003.02.24
Несколько необычная проблема - название для программы.


4-76226
mbIkola
2003-01-10 15:08
2003.02.24
Как нажать программно клавишу ALT