In a small test project I have this code: HRESULT hr = CoCreateInstance(CLSID_DOMDocument, NULL, CLSCTX_ALL, __uuidof( IXMLDOMDocument ), ( void ** ) & m_pDoc); if ( hr != S_OK ) { throw "MSXML DOM Document could not be created"; } This compiles and runs without problems. In another project the [...] read more