View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Abhijit Abhijit is offline
external usenet poster
 
Posts: 1
Default Excel 2002, VC++ problem, CreateDispatch not working

Hello,

I am running Excel 2002 (Excel.Application.10) on Win XP: with
reference to creation of the Excel Application object,

App.CreateDispatch("Excel.application")

does not work from VC++ but CreateObject i.e.

"Set xlApp = CreateObject("Excel.application")"

from VB works. Note that I have created the VC project correctly and
imported the Excel object into it correctly i.e. from
Excel.exe/ClasssWizard etc. This VC code works fine for
Excel.Application.9 i.e. Excel 2k.

Any idea what maybe going wrong ?

TIA,

-Abhijit