Excel automation problem
-
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
-
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
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.