Click here to Skip to main content
15,860,943 members
Articles / Programming Languages / C++
Article

Some useful additions for the C++ standard library

Rate me:
Please Sign up or sign in to vote.
4.58/5 (5 votes)
11 Apr 2000 86.4K   608   23   14
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 :-)

    License

    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


    Written By
    Germany Germany
    Daniel Lohmann (daniel@losoft.de) 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 Pin
    LLKHANBARI15-Jul-07 8:57
    LLKHANBARI15-Jul-07 8:57 
    Questionxsputn really needed ? Pin
    User 347498327-Dec-04 6:39
    User 347498327-Dec-04 6:39 
    AnswerRe: xsputn really needed ? Pin
    Daniel Lohmann29-Dec-04 4:34
    Daniel Lohmann29-Dec-04 4:34 
    GeneralRe: xsputn really needed ? Pin
    Henry Bruce30-Jul-07 8:27
    Henry Bruce30-Jul-07 8:27 
    QuestionI want to creat a Min heap,how can I do it? Pin
    TheWay15-Jan-03 5:17
    TheWay15-Jan-03 5:17 
    GeneralDon't use #define, it confuses debuggers Pin
    17-Jan-02 10:26
    suss17-Jan-02 10:26 
    GeneralCode repost: fix angle brackets Pin
    17-Jan-02 10:31
    suss17-Jan-02 10:31 
    GeneralRe: Code repost: fix angle brackets Pin
    Christian Graus17-Jan-02 12:49
    protectorChristian Graus17-Jan-02 12:49 
    GeneralRe: Code repost: fix angle brackets Pin
    Daniel Lohmann18-Jan-02 0:07
    Daniel Lohmann18-Jan-02 0:07 
    General~basic_dbgstreambuf() needs a tiny fix Pin
    Girish Zambre9-Apr-01 12:49
    Girish Zambre9-Apr-01 12:49 
    GeneralThe _stringf function is cool, but needs a bit more Pin
    15-Nov-00 11:11
    suss15-Nov-00 11:11 
    GeneralDon't use underscores. Pin
    James Curran13-Apr-00 6:10
    James Curran13-Apr-00 6:10 
    GeneralRe: Don't use underscores. Pin
    Alvaro Mendez15-May-00 13:06
    Alvaro Mendez15-May-00 13:06 
    GeneralRe: Don't use underscores. Pin
    James15-May-00 16:57
    James15-May-00 16:57 

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

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