Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Название темы: Кирилица в консоли
Показать сообщение отдельно

Аватара для Savant

Старожил


Сообщения: 300
Благодарности: 6

Профиль | Сайт | Отправить PM | Цитировать


а MSDN для кого ? http://msdn.microsoft.com

CharToOem Function

The CharToOem function translates a string into the OEM-defined character set.

Syntax
BOOL CharToOem(
LPCTSTR lpszSrc, LPSTR lpszDst);
Parameters
lpszSrc [in] Pointer to the null-terminated string to translate.

lpszDst [out] Pointer to the buffer for the translated string. If the CharToOem function is being used as an ANSI function, the string can be translated in place by setting the lpszDst parameter to the same address as the lpszSrc parameter. This cannot be done if CharToOem is being used as a wide-character function.
OemToChar Function


The OemToChar function translates a string from the OEM-defined character set into either an ANSI or a wide-character string.

Syntax

BOOL OemToChar(


LPCSTR lpszSrc, LPTSTR lpszDst);
Parameters


lpszSrc [in] Pointer to a null-terminated string of characters from the OEM-defined character set.

lpszDst [out] Pointer to the buffer for the translated string. If the OemToChar function is being used as an ANSI function, the string can be translated in place by setting the lpszDst parameter to the same address as the lpszSrc parameter. This cannot be done if OemToChar is being used as a wide-character function.

Последний раз редактировалось Drongo, 03-02-2009 в 10:32.


Отправлено: 15:02, 29-03-2005 | #14

Название темы: Кирилица в консоли