From: phil oakleaf on
have been using excel automation for several years without any problems
and use the excel8.h and excel8.cpp files that were generated by Visual
C++ ages ago (probably with Excel 97). Everything works except that
these files have nothing in them about AddIns

(Maybe addins only added as a feature after Excel 97)

I've tried regenerating these wrapper classes using Visual Studio 2005
but it wants to create separate classes which is fine except I cant get
them to work

each generated class has the following line
#import "C:\\Program Files (x86)\\Microsoft Office\\OFFICE11\\EXCEL.EXE"
no_namespace

which causes the compiler to generate errors by the ton - example below
1>c:\exceltest\exceltest\capplication.h(3) : warning C4278: 'RGB':
identifier in type library 'C:\\Program Files (x86)\\Microsoft
Office\\OFFICE11\\EXCEL.EXE' is already a macro; use the 'rename' qualifier
1>c:\exceltest\exceltest\capplication.h(3) : warning C4278: 'RGB':
identifier in type library 'C:\\Program Files (x86)\\Microsoft
Office\\OFFICE11\\EXCEL.EXE' is already a macro; use the 'rename' qualifier
1>c:\exceltest\exceltest\capplication.h(3) : warning C4192:
automatically excluding 'IFont' while importing type library
'C:\\Program Files (x86)\\Microsoft Office\\OFFICE11\\EXCEL.EXE'
1>c:\exceltest\exceltest\capplication.h(3) : warning C4192:
automatically excluding 'IPicture' while importing type library
'C:\\Program Files (x86)\\Microsoft Office\\OFFICE11\\EXCEL.EXE'



Can anyone point me to the simpler header and cpp wrapper files for
Excel - or let me know how to get vs2005 to work with the newer class
wrappers


Many thanks
Phil
From: nexolite on
These are all warnings, where are the errors , show the errors, as I am aware
of an error that occurs generally, but only after you show the errors..

"phil oakleaf" wrote:

> have been using excel automation for several years without any problems
> and use the excel8.h and excel8.cpp files that were generated by Visual
> C++ ages ago (probably with Excel 97). Everything works except that
> these files have nothing in them about AddIns
>
> (Maybe addins only added as a feature after Excel 97)
>
> I've tried regenerating these wrapper classes using Visual Studio 2005
> but it wants to create separate classes which is fine except I cant get
> them to work
>
> each generated class has the following line
> #import "C:\\Program Files (x86)\\Microsoft Office\\OFFICE11\\EXCEL.EXE"
> no_namespace
>
> which causes the compiler to generate errors by the ton - example below
> 1>c:\exceltest\exceltest\capplication.h(3) : warning C4278: 'RGB':
> identifier in type library 'C:\\Program Files (x86)\\Microsoft
> Office\\OFFICE11\\EXCEL.EXE' is already a macro; use the 'rename' qualifier
> 1>c:\exceltest\exceltest\capplication.h(3) : warning C4278: 'RGB':
> identifier in type library 'C:\\Program Files (x86)\\Microsoft
> Office\\OFFICE11\\EXCEL.EXE' is already a macro; use the 'rename' qualifier
> 1>c:\exceltest\exceltest\capplication.h(3) : warning C4192:
> automatically excluding 'IFont' while importing type library
> 'C:\\Program Files (x86)\\Microsoft Office\\OFFICE11\\EXCEL.EXE'
> 1>c:\exceltest\exceltest\capplication.h(3) : warning C4192:
> automatically excluding 'IPicture' while importing type library
> 'C:\\Program Files (x86)\\Microsoft Office\\OFFICE11\\EXCEL.EXE'
>
>
>
> Can anyone point me to the simpler header and cpp wrapper files for
> Excel - or let me know how to get vs2005 to work with the newer class
> wrappers
>
>
> Many thanks
> Phil
> .
>
 | 
Pages: 1
Prev: VS 2010 is cheaper
Next: A little question