Thanks I will try that.
The instructions say to select Excel.exe. I guess that is why there were so
many.h files created.
I will get back to you.
But thanks very much for the direction. I have my fingers crossed......
On Friday, December 05, 2008 10:59 PM Cameron wrote:
I still have the same issue.
I think that I need to include all of the files that were generated by
selecting the template library, and there were a lot of them.
But, there were no files named excel.h or excel.cpp.
And I get about two hundred compile errors of the format:
Error 1 error C2371: 'FontPtr' : redefinition; different basic
types c:\documents and settings\cconac\my documents\visual studio
2005\projects\excel test3\excel test3\debug\excel.tlh 1219
Error 2 error C2786: 'BOOL (__stdcall *)(HDC,int,int,int,int)' : invalid
operand for __uuidof c:\documents and settings\cconac\my documents\visual
studio 2005\projects\excel test3\excel test3\debug\excel.tlh 1297
Error 3 error C2923: '_com_IIID' : 'Rectangle' is not a valid template type
argument for parameter '_Interface' c:\documents and settings\cconac\my
documents\visual studio 2005\projects\excel test3\excel
test3\debug\excel.tlh 1297
Error 4 error C3203: '_com_IIID' : unspecialized class template can't be
used as a template argument for template parameter '_IIID', expected a real
type c:\documents and settings\cconac\my documents\visual studio
2005\projects\excel test3\excel test3\debug\excel.tlh 1297
Error 5 error C2786: 'BOOL (__stdcall
*)(HDC,int,int,int,int,int,int,int,int)' : invalid operand for
__uuidof c:\documents and settings\cconac\my documents\visual studio
2005\projects\excel test3\excel test3\debug\excel.tlh 1301
Error 6 error C2923: '_com_IIID' : 'Arc' is not a valid template type
argument for parameter '_Interface' c:\documents and settings\cconac\my
documents\visual studio 2005\projects\excel test3\excel
test3\debug\excel.tlh 1301
"Cameron_C" wrote:
On Saturday, December 06, 2008 3:19 PM Ajay Kalra wrote:
wrote:
he
on
Excel.h/cpp should be created for you when you import the excel
library. These do not ship with VC/VS.
--
Ajay
On Sunday, December 07, 2008 3:21 PM Cameron wrote:
Just for anyone following along here.
I found another couple of KB articles (thanks AliR for directing me...)
This is the OLD link which is not quite correect...
http://support.microsoft.com/kb/178781
This is a newer link http://support.microsoft.com/kb/307473/EN-US/
And this is a followon from the above link
http://support.microsoft.com/kb/308292
Thanks again veryone.
I hope this helps someone down the road.
I was confused, until I deleted all of the #import statements in all of the
header files, and then lost until I read the KB article explaining that you
may need to to change DialogBox in CRange.h to _DialogBox.
"AliR (VC++ MVP)" wrote: