Home » U++ Library support » U++ Core » cout, cin etc. question
Re: cout, cin etc. question [message #15752 is a reply to message #15235] |
Wed, 07 May 2008 04:32  |
 |
tvanriper
Messages: 85 Registered: September 2007 Location: Germantown, MD, USA
|
Member |
|
|
In Windows, the console can be relatively easily Unicode-aware under an NT-derived OS.
Instead of std::cout/std::cin/std::cerr, you'd use std::wcout/std::wcin/std::wcerr.
Typically, I like to have some header file with something like the following:
#ifdef UNICODE
#define Tcout std::wcout
#define Tcin std::wcin
#define Tcerr std::wcerr
#else // UNICODE
#define Tcout std::cout
#define Tcin std::cin
#define Tcerr std::cerr
#endif // UNICODE
In this way, I can use the standard stream classes for working with TCHARs (again, in Windows). I've done this with a number of console applications in the past.
I don't know as much about U++ in these regards, though.
|
|
|
Goto Forum:
Current Time: Fri Jul 18 11:37:43 CEST 2025
Total time taken to generate the page: 0.04064 seconds
|