CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Visual C++ Debugging: How to show Windows API errors in the Watch window?

    Q: Is it possible to directly display the Windows API error codes and descriptions in the Watch window?

    A: Yes. Just type $err,hr in the Watch window.



    For more tips about WinAPI errors, see Windows SDK: How to get the reason for a failure of a SDK function?.
    Last edited by ovidiucucu; May 31st, 2009 at 04:49 AM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

Tags for this Thread

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