PRB: OLE Initialization Error Running Task Scheduler Sample Code (184767)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 4.0

This article was previously published under Q184767

SYMPTOMS

To replace the System Agent in Microsoft 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 software development kit (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 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 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: After the Task Scheduler Add-in is installed, the compiled Sa.exe functions properly.

STATUS

This behavior is by design.

Modification Type:MinorLast Reviewed:12/18/2003
Keywords:kberrmsg kbprb KB184767