excelApp.CreateDispatch() returns a zero value : failure
<p>I have the following piece of code in Visual C++ 2005 : : </p>

<p>class _Application:public COleDispatchDriver {....};</p>

<p>_Application excelApp;</p>

<p>excelApp.CreateDispatch((LPCTSTR)_T("Excel.Application")))</p>

<p>But the call to excelApp.CreateDispatch((LPCTSTR)_T("Excel.Application")))  returns a zero value indicating a failure . </p>

<p>Could you please tell me what could be the possible reason ?</p>

<p>PS : I copied the above piece of code from an another solution ( Visual C++ 2005) where this works perfectly fine on the same machine .  </p>
