Click here to Skip to main content
Click here to Skip to main content

Some useful additions for the C++ standard library

, 11 Apr 2000
Rate this:
Please Sign up or sign in to vote.
Defines some TCHAR compatible STL elements and gives you an std::ostream to send output to the debugger windows.
  • Download source files - 3 Kb
  • This is some simple, but useful code for STL users. It defines some TCHAR compatible elements of STL:

    _tstring	- wstring or string
    _tostream	- wostream or ostream
    _tistream	- wistream or istream
    _tcout	- wcout or cout
    _tcin	- wcin or cin
    _tcerr	- wcerr or cerr
    _tclog	- wclog or clog
    It gives you a std::ostream to dump objects into the debugger window, some string functions and adds support for __int64 types.

    No really fancy stuff, but you may need it Smile | :)


    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here


    About the Author

    Daniel Lohmann

    Germany Germany
    Daniel Lohmann ( is Assistant Professor at the Distributed Systems and Operating Systems department at Friedrich-Alexander-University Erlangen-Nuremberg, Germany. His main research topic is the design of a highly customizable and scalable operating system product line for deeply embedded systems using static configuration and aspect-oriented techniques. Before joining Universität Erlangen he worked as a freelance trainer and consultant for NT system programming, advanced C++ programming and OOA/OOD. He is interested in upcoming programming techniques like aspect-oriented programming, generative programming and C++ meta coding and has written some nice and handy tools for Windows NT which you can download at his web site.

    Comments and Discussions

    QuestionTimer events code PinmemberLLKHANBARI15-Jul-07 9:57 
    Questionxsputn really needed ? Pinsuss__gui_gui__27-Dec-04 7:39 
    AnswerRe: xsputn really needed ? PinmemberDaniel Lohmann29-Dec-04 5:34 
    GeneralRe: xsputn really needed ? PinmemberHenry Bruce30-Jul-07 9:27 
    QuestionI want to creat a Min heap,how can I do it? PinmemberTheWay15-Jan-03 6:17 
    GeneralDon't use #define, it confuses debuggers PinmemberBen Berck17-Jan-02 11:26 
    GeneralCode repost: fix angle brackets PinmemberBen Berck17-Jan-02 11:31 
    GeneralRe: Code repost: fix angle brackets PinmemberChristian Graus17-Jan-02 13:49 
    Of course, if we're being picky, using namespace std is a colossally bad idea...

    I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
    Sonork ID 100.10002:MeanManOz
    I live in Bob's HungOut now

    GeneralRe: Code repost: fix angle brackets PinmemberDaniel Lohmann18-Jan-02 1:07 
    General~basic_dbgstreambuf() needs a tiny fix PinmemberGirish Zambre9-Apr-01 13:49 
    GeneralThe _stringf function is cool, but needs a bit more PinmemberCodeSkunk15-Nov-00 12:11 
    GeneralDon't use underscores. PinsussJames Curran 13-Apr-00 7:10 
    GeneralRe: Don't use underscores. PinsussAlvaro Mendez15-May-00 14:06 
    GeneralRe: Don't use underscores. PinsussJames 15-May-00 17:57 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Terms of Use | Mobile
    Web03 | 2.8.150327.1 | Last Updated 12 Apr 2000
    Article Copyright 2000 by Daniel Lohmann
    Everything else Copyright © CodeProject, 1999-2015
    Layout: fixed | fluid