Exceldriver problem.

Exceldriver problem.

Postby SChris » Fri Oct 05, 2007 8:02 pm

I downloaded the code (for Excel 2003) from http://egor.ch/cuchulainn/ExcelDriverProject2.zip and changed to the right paths in Exceldriver.cpp and import.hpp, but when I was trying to compile, here comes the error information as follows. Not sure how to deal with it. Could somebody help, please?



BTW: I'm using VC6.0 and Excel 2003





--------------------Configuration: newexcel - Win32 Debug--------------------

Compiling...

DDPresentation.cpp

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(218) : error C2146: syntax error : missing ';' before identifier 'CommandBars'

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(218) : error C2501: '_CommandBarsPtr' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(218) : error C2501: 'CommandBars' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(239) : error C2146: syntax error : missing ';' before identifier 'GetCommandBars'

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(239) : error C2501: '_CommandBarsPtr' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : error C2143: syntax error : missing ';' before 'tag::id'

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : error C2433: '_CommandBarsPtr' : 'inline' not permitted on data declarations

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : error C2501: '_CommandBarsPtr' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : fatal error C1004: unexpected end of file found

ExcelDriver.cpp

g:\program files\microsoft visual studio\myprojects\newexcel\debug\mso.tlh(1089) : warning C4146: unary minus operator applied to unsigned type, result still unsigned

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(218) : error C2146: syntax error : missing ';' before identifier 'CommandBars'

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(218) : error C2501: '_CommandBarsPtr' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(218) : error C2501: 'CommandBars' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(239) : error C2146: syntax error : missing ';' before identifier 'GetCommandBars'

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(239) : error C2501: '_CommandBarsPtr' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : error C2143: syntax error : missing ';' before 'tag::id'

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : error C2433: '_CommandBarsPtr' : 'inline' not permitted on data declarations

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : error C2501: '_CommandBarsPtr' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : fatal error C1004: unexpected end of file found

Imports.cpp

g:\program files\microsoft visual studio\myprojects\newexcel\debug\mso.tlh(1089) : warning C4146: unary minus operator applied to unsigned type, result still unsigned

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(218) : error C2146: syntax error : missing ';' before identifier 'CommandBars'

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(218) : error C2501: '_CommandBarsPtr' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(218) : error C2501: 'CommandBars' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(239) : error C2146: syntax error : missing ';' before identifier 'GetCommandBars'

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tlh(239) : error C2501: '_CommandBarsPtr' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : error C2143: syntax error : missing ';' before 'tag::id'

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : error C2433: '_CommandBarsPtr' : 'inline' not permitted on data declarations

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : error C2501: '_CommandBarsPtr' : missing storage-class or type specifiers

g:\program files\microsoft visual studio\myprojects\newexcel\debug\vbe6ext.tli(32) : fatal error C1004: unexpected end of file found

Error executing cl.exe.



newexcel.exe - 27 error(s), 2 warning(s)
SChris
 
Posts: 1
Joined: Thu Oct 04, 2007 9:31 pm

Postby Cuchulainn » Sun Oct 07, 2007 1:15 pm

This is a strange result because the files in question are generated ones so it's not a problem of missing include or library files.



The 'unexpected end of file' message could be caused by a project property setting concerning precompiled header files . This setting should be OFF (thus, NO phf).



This might solve.



BTW VC 6.0 is (very) old now, I do not have it on my system anymore. You should get VS2005 or Express (note; the latter has no Excel support!!!)



hope this helps
User avatar
Cuchulainn
 
Posts: 669
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby Cuchulainn » Thu Oct 11, 2007 1:25 pm

I have run the program using the source code from the CD using VS2005 and Excel 2003 and it all works fine.
User avatar
Cuchulainn
 
Posts: 669
Joined: Mon Dec 18, 2006 2:48 pm
Location: Amsterdam, the Netherlands

Postby lamborghini » Thu Nov 21, 2013 7:15 am

The 'unexpected end of file' message could be caused by a project property setting concerning precompiled header files . This setting should be OFF (thus, NO phf).
lamborghini
 
Posts: 1
Joined: Wed Nov 20, 2013 1:08 pm


Return to Financial Instrument Pricing using C++ (Duffy)

Who is online

Users browsing this forum: No registered users and 1 guest