Visual C++ 6.0 application exporting to Excel 2003 and 2007

G

Gloria

I have an application that has to export data to an Excel file using 2003 and
2007.
Originally, it was for 2000 and used the excel9.h and excel9.cpp files.
These header and cpp files worked fine for 2003 but when I put my
application on a system with 2007, it crashes.

I read in a KB Article that I need excel.h and .cpp. Following these
directions, I went thru the Class Wizard in 6.0 to add them to my project.
I deleted the excel9.h and .cpp files and changed the #include directives to
point to excel.h. However, when i recompile, I get errors saying all of the
excel classes are redefinitions.
Ex of error: error C2011: 'Adjustments' : 'class' type
redefinition
When I right-click on an Excel class to go to its definition, I get the Find
Source Dialog box and it is looking for the excel9.h file.

The include directive at the top of the file is:
#include excel.h
and I deleted the #include excel9.h.

Why is it looking for excel9.h?

Thanks,
Gloria
 

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