- 279 名前:デフォルトの名無しさん mailto:sage [2007/06/09(土) 02:29:52 ]
- 回答ありがとうございました。
皆様の意見を参考にこのようにしました。 #ifdef UNICODE #ifdef _MBCS #error define either only UNICODE or _MBCS. #else std::basic_istream<TCHAR, std::char_traits<TCHAR> >& Tcin = std::wcin; std::basic_ostream<TCHAR, std::char_traits<TCHAR> >& Tcout = std::wcout; std::basic_ostream<TCHAR, std::char_traits<TCHAR> >& Tcerr = std::wcerr; std::basic_ostream<TCHAR, std::char_traits<TCHAR> >& Tclog = std::wclog; #endif #else #ifdef _MBCS std::basic_istream<TCHAR, std::char_traits<TCHAR> >& Tcin = std::cin; std::basic_ostream<TCHAR, std::char_traits<TCHAR> >& Tcout = std::cout; std::basic_ostream<TCHAR, std::char_traits<TCHAR> >& Tcerr = std::cerr; std::basic_ostream<TCHAR, std::char_traits<TCHAR> >& Tclog = std::clog; #else #error define either only UNICODE or _MBCS. #endif #endif 軽く使っただけなんで不具合は分かりませんが、 iostreamやiosfwdでの定義から考えればこれでいけそうに思えます。 _INC_TCHARの定義を必要とするようにとかまだ色々付け加えるべきことはあるとはおもいますが
|

|