Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.12.12;
Скачать: CL | DM;

Вниз

Ищу уже 80 часов ответ на вопрос - нигде нет!!!   Найти похожие ветки 

 
WriteConsoleInput   (2004-11-26 17:13) [0]

Функция WriteConsoleInput НЕ передает нажатие клавиш в консольное приложение, работающее под Windows 98.
При этом, количество непрочитанных записей введенных данных: GetNumberOfConsoleInputEvents равно количеству переданных символов.

Та же функция WriteConsoleInput для Windows NT прекрасно работает. В чем дело, как быть?


 
KilkennyCat ©   (2004-11-26 17:16) [1]

судя по справке, к платформе критичности нет. Значит, ошибка в другом месте.


 
Ega23 ©   (2004-11-26 17:17) [2]

Remarks

WriteConsoleInput places input records into the input buffer behind any pending events in the buffer. The input buffer grows dynamically, if necessary, to hold as many events as are written.

Windows NT: This function uses either Unicode characters or 8-bit characters from the console"s current codepage. The console"s codepage defaults initially to the system"s OEM codepage. To change the console"s codepage, use the SetConsoleCP or SetConsoleOutputCP functions, or use the chcp or mode con cp select= commands.


Может быть в этом?


 
WriteConsoleInput   (2004-11-26 17:18) [3]

Да, эта функция работает на всех платформах!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/writeconsoleinput.asp



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

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

Наверх




Память: 0.47 MB
Время: 0.026 c
14-1101051359
RusLAN_
2004-11-21 18:35
2004.12.12
Неподходит пароль к своему нику (_RusLAN)


14-1100918992
DelphiN!
2004-11-20 05:49
2004.12.12
Подмена системных файлов


8-1094558895
X-Disa
2004-09-07 16:08
2004.12.12
TImage и "курсор"


1-1101473721
SOLDEN1
2004-11-26 15:55
2004.12.12
Динамическое создания нескольких копий формы


3-1100244981
lightix
2004-11-12 10:36
2004.12.12
Сжать DBF