Click here to Skip to main content
Licence 
First Posted 11 Apr 2000
Views 66,965
Bookmarked 20 times

Some useful additions for the C++ standard library

By | 11 Apr 2000 | Article
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

    About the Author

    Daniel Lohmann



    Germany Germany

    Member

    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.

    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    QuestionTimer events code PinmemberLLKHANBARI8:57 15 Jul '07  
    Questionxsputn really needed ? Pinsuss__gui_gui__6:39 27 Dec '04  
    AnswerRe: xsputn really needed ? PinmemberDaniel Lohmann4:34 29 Dec '04  
    GeneralRe: xsputn really needed ? PinmemberHenry Bruce8:27 30 Jul '07  
    QuestionI want to creat a Min heap,how can I do it? PinmemberTheWay5:17 15 Jan '03  
    GeneralDon't use #define, it confuses debuggers PinmemberBen Berck10:26 17 Jan '02  
    GeneralCode repost: fix angle brackets PinmemberBen Berck10:31 17 Jan '02  
    GeneralRe: Code repost: fix angle brackets PinmemberChristian Graus12:49 17 Jan '02  
    Of course, if we're being picky, using namespace std is a colossally bad idea...

     
    Christian
     
    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 Lohmann0:07 18 Jan '02  
    General~basic_dbgstreambuf() needs a tiny fix PinmemberGirish Zambre12:49 9 Apr '01  
    GeneralThe _stringf function is cool, but needs a bit more PinmemberCodeSkunk11:11 15 Nov '00  
    GeneralDon't use underscores. PinsussJames Curran 6:10 13 Apr '00  
    GeneralRe: Don't use underscores. PinsussAlvaro Mendez13:06 15 May '00  
    GeneralRe: Don't use underscores. PinsussJames 16:57 15 May '00  

    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.

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