Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert TCHAR to char

Status
Not open for further replies.

crystalReporterNew

Programmer
Jan 18, 2004
24
US
Hi,

Can someone tell me how to convert a TCHAR string to char??

Thanks!
 
CharToOem converts from a TCHAR string to a char string and OemToChar converts back.
 
TCHAR is char in ANSI mode and WCHAR in UNICODE mode (compile time modes). No need to convert TCHAR if your application was compiled in ANSI mode. Otherwise use WideCharToMultiByte() Win API function.
CharToOem() converts a string to OEM code (equipment char code). For example, in English World OEM == ANSI...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top