Working with Task Scheduler 1.0 COM API
I am trying to write a simple program in VC ++ that simply initializes the task scheduler. I am following the example suggested on the MSDN site , but I am getting unresolved symbol errors from the linker.
The error is on this line:
hr = CoCreateInstance(CLSID_CTaskScheduler,
NULL,
CLSCTX_INPROC_SERVER,
IID_ITaskScheduler,
(void **) &pITS);
The error I am getting:
error LNK2001: unresolved external symbol _CLSID_CTaskScheduler
Same error for _IID_ITaskScheduler
. I have the relevant header files. Do I need to add the dependency to any other DLL?
Thank,
Rohit
+1
source to share