title: Working with the task scheduler 1.0 COM API
body: <p>I'm trying to write a simple program in VC++ which will just initialize the task scheduler. I'm following the <a href="http://msdn.microsoft.com/en-us/library/aa446829(VS.85).aspx" rel="nofollow noreferrer">example suggested at the MSDN site</a>, but I get unresolved symbol errors from the linker. </p>
  
  <p>The error is on this line:</p>
  
  <pre><code> hr = CoCreateInstance(CLSID_CTaskScheduler,
                             NULL,
                             CLSCTX_INPROC_SERVER,
                             IID_ITaskScheduler,
                             (void **) &amp;pITS);
  </code></pre>
  
  <p>The error I get is:</p>
  
  <p>error LNK2001: unresolved external symbol <code>_CLSID_CTaskScheduler</code>   </p>
  
  <p>Same error for <code>_IID_ITaskScheduler</code>. I have the relevant header files included. Do I need to add a dependency to any other DLL as well?</p>
  
  <p>Thanks,</p>
  
  <p>Rohit</p>