Board index » Visual Studio » HRESULT to text?
|
fullstacks
|
HRESULT to text?
Visual Studio85
Hi Is there any chance anyone could tell me how to go from an HRESULT to text? I am using ADO via COM, and am getting the following HRESULT when I try to call _Connection_Open: -2147467259 I am calling it with #define TESTCONNECT _T("Provider=SQLOLEDB;Integrated Security=SSPI;Data Source=(local)") ... hr = _Connection_Open(cndb, TESTCONNECT, _T(""), _T(""), -1); I would like to know how to fix this error which even already I am suspecting to be due to the fact that TESTCONNECT is not BSTR, however, I would like to know how to get from that HRESULT to a meaningful message, when calling functions of the ADO library. I am using the SDK not visual studio/ATL/MFC, so _com_issue_error and anything else in <comutil.h>is out. - |
