CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2011
    Posts
    4

    Tracing to output panel

    Hi there im just starting to use C++ coming from AS3. Im used to using trace(); but i cant work out how to do this in C++.

    Im using Visual Studio 2008 btw!

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Tracing to output panel

    In the C++ there's no portable trace specified (except printf, cout and so on) but when working in MSVC you can use OutputDebugString http://msdn.microsoft.com/en-us/libr...62(VS.85).aspx Also if you use the full MSVC, in MFC there's the TRACE macro http://msdn.microsoft.com/en-us/libr...ha(VS.80).aspx that behaves similar to printf.
    Last edited by S_M_A; January 19th, 2011 at 07:11 AM.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    Jan 2011
    Posts
    4

    Re: Tracing to output panel

    Thanks, i will try
    Thanks for your answers, My website is: Birmingham escort

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured