Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLS HELP : CreateInstance (__uuidof(SHDocVw::ShellWindows) failed

Status
Not open for further replies.

senpuppy

Programmer
Sep 27, 2004
3
0
0
US
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.

This code works fine on XP-SP1 and W2K. Only on XP/SP2 it is returning this error.

SenPy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top