PRB: OLE Initialization Error in Internet Explorer

ID: Q184767


The information in this article applies to:


SYMPTOMS

To replace the System Agent in Windows 95, Microsoft has created a new Internet Explorer 4.0 Add-in component called Task Scheduler. Sample code that uses the interfaces are available for this utility, they can be found in the Internet Client SDK as well as the Platform SDK in the following directories:


   \INetSDK\Samples\Task
   \MSSDK\samples\sysmgmt\tasksched 
If you do not have the Task Scheduler Add-in installed on your system, you will receive an "Ole initialization and instantiation failed" error.


CAUSE

You must have the Task Scheduler Add-in installed in order for this sample to function correctly; otherwise, you will receive an "OLE initialization and instantiation failed" error. The necessary interfaces are not installed so the CoCreateInstance fails when trying to initialize the ITaskScheduler interface because the Task Scheduler Add-in is not available.


RESOLUTION

The necessary interfaces for this sample are registered when you install the Task Scheduler add-in for Internet Explorer 4.0. This add-in can be found by navigating through the Download section for Internet Explorer at the following Web site:

http://www.microsoft.com/ie/
After the Task Scheduler Add-in is installed, the compiled Sa.exe will function properly.


STATUS

This behavior is by design.

Additional query words:


Keywords          : kberrmsg kbIE400 kbIE500 
Version           : WINDOWS:4.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 30, 1999