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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error with CoCreateInstance()

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am trying to schedule an app using the MS-COM objs......

I am not able to use CoCreateInstance()successfully. Here's my code:

HRESULT hres1, hres2;
hres1 = CoInitialize(NULL);

hres2 = CoCreateInstance( &rclsid, NULL, CLSCTX_INPROC_SERVER, &IID_ITaskScheduler,(void **)&ppv );

I checked the values for hres's .... the error is in the second one ..... i.e. CoCreateInstance ..... any ideas ....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top