|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| user32.lib
| Header File
| winuser.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
CharToOem
The CharToOem function translates a string into the OEM-defined character set. (OEM stands
for original equipment manufacturer.) This function supersedes the AnsiToOem function.
BOOL CharToOem(
LPCTSTR lpszSrc,
| // pointer to string to translate
| LPSTR lpszDst
| // pointer to translated string
| );
|
|
Parameters
lpszSrc
Pointer to the null-terminated string to translate.
lpszDst
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.
Return Values
The return value is always nonzero.
See Also
CharToOemBuff, OemToChar, OemToCharBuff
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|