Thank you for your reply. I added the import statements:
#import "D:\\Program Files\\Common Files\\Microsoft
Shared\\Office10\\MSO.DLL" rename("RGB", "ExclRGB")
rename("DocumentProperties", "ExclDocumentProperties") rename("SearchPath",
"ExclSearchPath")
#import "D:\\Program Files\\Common Files\\Microsoft
Shared\\VBA\\VBA6\\VBE6EXT.OLB"
#import "D:\\Program Files\\Microsoft Office\\Office10\\EXCEL.EXE"
rename("RGB", "ExclRGB") rename("CopyFile", "ExclCopyFile")
rename("ReplaceText", "ExclReplaceText") rename("DialogBox", "ExclDialogBox")
Now there are only 20 errors and 2 warnings. I still do not know how to fix
these though. It appears to be related to Visual Basic. The errors are:
Error 1 error C2146: syntax error : missing ';' before identifier
'VBProject' e:\exceltest\exceltest\debug\excel.tlh 61278
Error 2 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 61278
Error 3 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 61278
Error 4 error C2146: syntax error : missing ';' before identifier
'GetVBProject' e:\exceltest\exceltest\debug\excel.tlh 61643
Error 5 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 61643
Error 6 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 61643
Warning 7 warning C4183: 'GetVBProject': missing return type; assumed to be
a member function returning
'int' e:\exceltest\exceltest\debug\excel.tlh 61643
Error 8 error C2146: syntax error : missing ';' before identifier
'VBE' e:\exceltest\exceltest\debug\excel.tlh 64876
Error 9 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 64876
Error 10 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 64876
Error 11 error C2146: syntax error : missing ';' before identifier
'GetVBE' e:\exceltest\exceltest\debug\excel.tlh 65877
Error 12 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 65877
Error 13 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 65877
Warning 14 warning C4183: 'GetVBE': missing return type; assumed to be a
member function returning 'int' e:\exceltest\exceltest\debug\excel.tlh 65877
Error 15 error C2143: syntax error : missing ';' before
'Excel::_Workbook::GetVBProject' e:\exceltest\exceltest\debug\excel.tlh 81549
Error 16 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 81549
Error 17 error C2497: '_VBProjectPtr' : 'implementation_key' can only be
applied to function declarations e:\exceltest\exceltest\debug\excel.tlh 81549
Error 18 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 81549
Error 19 error C2143: syntax error : missing ';' before
'Excel::_Application::GetVBE' e:\exceltest\exceltest\debug\excel.tlh 82209
Error 20 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 82209
Error 21 error C2497: 'VBEPtr' : 'implementation_key' can only be applied to
function declarations e:\exceltest\exceltest\debug\excel.tlh 82209
Error 22 error C4430: missing type specifier - int assumed. Note: C++ does
not support default-int e:\exceltest\exceltest\debug\excel.tlh 82209