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
    Iasi - Romania

    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.
    "When in Rome, do as Romans do."
    My latest articles: http://codexpert.ro/blog/author/ovidiu-cucu/

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.