I'm calling
HRESULT retval = CoCreateInstance(SQLNCLI_CLSID, NULL,
CLSCTX_INPROC_SERVER,
IID_IDBInitialize,
(void **) &m_pIDBInitialize);
and it returns the above return code. I don't know what in the world it means or how to get an error message out of it.
The only possible return values for CoCreateInstance listed in
http://msdn.microsoft.com/en-us/library/windows/desktop/ms686615%28v=vs.85%29.aspx
are
S_OK
REGDB_E_CLASSNOTREG
CLASS_E_NOAGGREGATION
E_NOINTERFACE
E_POINTER
#define S_OK ((HRESULT)0L)
#define REGDB_E_CLASSNOTREG _HRESULT_TYPEDEF_(0x80040154L)
#define CLASS_E_NOAGGREGATION _HRESULT_TYPEDEF_(0x80040110L)
#define E_NOINTERFACE _HRESULT_TYPEDEF_(0x80004002L)
#define E_POINTER _HRESULT_TYPEDEF_(0x80004003L)
The values in decimal respectively are 0, 2147746132, 2147746064, 2147500034 and 2147500035. None of them is the value I got.
Please help before I shoot myself.
- Edited by PriorityCustomer Saturday, September 14, 2013 12:00 PM