Home > COM > Convert win32 error codes to HRESULT

Convert win32 error codes to HRESULT

Use HRESULT_FROM_WIN32.

  1. October 14, 2009 at 2:08 pm

    Hi Mithun,

    You can type @err,hr into the debug watch window to see a description of last error. Also there is a API called FormatMessage, which helps in translating an error code to it’s description.

  2. mithun
    October 14, 2009 at 12:12 pm

    how to convert the hresult code to error description

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: