Hi, This following code in a console application: CoInitialize(0); HRESULT hr; SHDocVw::IShellWindowsPtr spSHWinds; hr = spSHWinds.CreateInstance (__uuidof(SHDocVw::ShellWindows)); ====> Returns 0x0x80040154 - Class not registered. Can someone please help me why I am getting this error? Any help would be greatly appreciated. SenPy
SenPy
Posts
-
PLS HELP : CreateInstance (__uuidof(SHDocVw::ShellWindows) failed -
PLS HELP : CoCreateInstance on IE object failed on XP/SP2Hi, I am trying to navigate to a particular web site and populate the web form fields from my MFC application. BTW, this code works fine on W2K and XP/SP1. Regards SenPy
-
PLS HELP : CreateInstance (__uuidof(SHDocVw::ShellWindows) failedHi, This following code in a console application: CoInitialize(0); HRESULT hr; SHDocVw::IShellWindowsPtr spSHWinds; hr = spSHWinds.CreateInstance (__uuidof(SHDocVw::ShellWindows)); ====> Returns 0x0x80040154 - Class not registered. Can someone please help me why I am getting this error? Any help would be greatly appreciated. SenPy
-
PLS HELP : CoCreateInstance on IE object failed on XP/SP2Hi, Here is the part of the EXE code: if (FAILED (CoInitialize (NULL))) { return FALSE; } ... ... HRESULT hr; IWebBrowser2* pWebBrowser = NULL; hr = CoCreateInstance (CLSID_InternetExplorer, NULL, CLSCTX_LOCAL_SERVER, IID_IWebBrowser2, (LPVOID*)&pWebBrowser); ====> hr is 0x80070005 - Access is denied. This is happening only with Windows XP/SP2. On the same PC with SP1, it works fine also it works fine on W2K. Can someone PLEASE help me to solve this issue? Thanks SenPy
-
PLS HELP : CoCreateInstance on IE object failed on XP/SP2Hi, Here is the part of the EXE code: if (FAILED (CoInitialize (NULL))) { return FALSE; } ... ... HRESULT hr; IWebBrowser2* pWebBrowser = NULL; hr = CoCreateInstance (CLSID_InternetExplorer, NULL, CLSCTX_LOCAL_SERVER, IID_IWebBrowser2, (LPVOID*)&pWebBrowser); ====> hr is 0x80070005 - Access is denied. This is happening only with Windows XP/SP2. On the same PC with SP1, it works fine also it works fine on W2K. Can someone PLEASE help me to solve this issue? Thanks SenPy