Click here to Skip to main content
12,898,335 members (54,280 online)
Click here to Skip to main content
Add your own
alternative version


23 bookmarked
Posted 11 Apr 2000

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 :-)


    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.

    You may also be interested in...


    Comments and Discussions

    GeneralDon't use #define, it confuses debuggers Pin
    Ben Berck17-Jan-02 10:26
    memberBen Berck17-Jan-02 10:26 
    GeneralCode repost: fix angle brackets Pin
    Ben Berck17-Jan-02 10:31
    memberBen Berck17-Jan-02 10:31 
    GeneralRe: Code repost: fix angle brackets Pin
    Christian Graus17-Jan-02 12:49
    memberChristian Graus17-Jan-02 12:49 
    GeneralRe: Code repost: fix angle brackets Pin
    Daniel Lohmann18-Jan-02 0:07
    memberDaniel Lohmann18-Jan-02 0:07 

    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.

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