Microsoft KB Archive/184767

= PRB: OLE Initialization Error Running Task Scheduler Sample Code =

Article ID: 184767

Article Last Modified on 12/18/2003

-

APPLIES TO


 * Microsoft Internet Explorer 4.0 128-Bit Edition

-



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:

http://www.microsoft.com/ie/

After the Task Scheduler Add-in is installed, the compiled Sa.exe functions properly.



STATUS
This behavior is by design.

Keywords: kberrmsg kbprb KB184767

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.