 |
OemToChar Add comment W32 Constants Translate this page |
 |
 |
Translates a string from the OEM-defined character set into either an ANSI or a wide-character string.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL OemToChar(
LPCSTR lpszSrc, // string to translate
LPTSTR lpszDst // translated string
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE SHORT OemToChar IN user32;
STRING lpszSrc,;
STRING @ 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. |
 |
 |
| Return value: |
 |
| The return value is always nonzero except when you pass the same address to lpszSrc and lpszDst in the wide-character version of the function. In this case the function returns zero and GetLastError returns ERROR_INVALID_ADDRESS. |
 |
 |
| Word Index links for the OemToChar : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-10 12:00:00 | | Modified: | 2001-11-26 16:03:10 | Visited in last 7 days: 16 |