Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Excel automation problem

Excel automation problem

Scheduled Pinned Locked Moved C / C++ / MFC
c++testingtoolshelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    followait
    wrote on last edited by
    #1

    In VC++ 2008, I import some classes from excel.exe (office 2003), and include them as below:

    #include "CApplication.h"
    #include "CWorkbook.h"
    #include "CWorkbooks.h"
    #include "CWorksheet.h"
    #include "CWorksheets.h"
    #include "CRange.h"

    When compiling, there are hundreds of errors. Google says that there should be another file like excel8.h/excel9.h. But it isn't generated, what's the problem?

    system

    Y 1 Reply Last reply
    0
    • F followait

      In VC++ 2008, I import some classes from excel.exe (office 2003), and include them as below:

      #include "CApplication.h"
      #include "CWorkbook.h"
      #include "CWorkbooks.h"
      #include "CWorksheet.h"
      #include "CWorksheets.h"
      #include "CRange.h"

      When compiling, there are hundreds of errors. Google says that there should be another file like excel8.h/excel9.h. But it isn't generated, what's the problem?

      system

      Y Offline
      Y Offline
      Yajnesh Narayan Behera
      wrote on last edited by
      #2

      You are using the wizard to import all these classes or not? If you are using the wizard then all the headrers file will be added automaticlally. I do not know in 2008 how you will use the wizard, but exploring a little I suppose you will get it.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups