First of all, I am not much of a C programmer..
How can I do a lookup of error text based on a hex result? I need to modify an existing prog to get some better information from errors returned. Errors from a dll are returned in hex, and I have a header file that containes all the error defines, some of them are:
How can I use these to get better error messages? If I can't use these, what can I do?
How can I do a lookup of error text based on a hex result? I need to modify an existing prog to get some better information from errors returned. Errors from a dll are returned in hex, and I have a header file that containes all the error defines, some of them are:
Code:
#define hrNyi ((HRESULT)0xC0000001L)
#define hrCBDatabaseInUse ((HRESULT)0xC7FE1F41L)
#define hrCBDatabaseNotFound ((HRESULT)0xC7FE1F42L)
How can I use these to get better error messages? If I can't use these, what can I do?