Visual C++ Debugging: How to show Windows API errors in the Watch window?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

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

Hybrid View

  1. #1
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,026

    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 Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: 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

This is a CodeGuru survey question.


Featured


HTML5 Development Center