Excel 2002 and VC++, CreateDispatch not working

A

Abhijit

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top