L
LeonXYZ
My Dear friends,
I am building an application with Word automation, I added 3 MFC class from
Typelib, CDocument, CDocuments and CApplication
The head file contains
#import "C:\\Program Files\\Microsoft Office\\Office12\\MSWORD.OLB"
rename("ExitWindows","ExitWindows1") rename("FindText","FindText1")
rename("Calculate","Calculate1")
but the compiler give a lot of similar errors for lines like below
__declspec(property(get=GetFonts))
WebPageFontsPtr Fonts;
__declspec(property(get=GetCustomXMLPart))
_CustomXMLPartPtr CustomXMLPart;
CustomXMLNodePtr GetCustomXMLNode ( );
error C2146: syntax error : missing ';' before identifier 'Fonts'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
I think I must missed some point here.
Any help would be very appreciated.
LeonXYZ
I am building an application with Word automation, I added 3 MFC class from
Typelib, CDocument, CDocuments and CApplication
The head file contains
#import "C:\\Program Files\\Microsoft Office\\Office12\\MSWORD.OLB"
rename("ExitWindows","ExitWindows1") rename("FindText","FindText1")
rename("Calculate","Calculate1")
but the compiler give a lot of similar errors for lines like below
__declspec(property(get=GetFonts))
WebPageFontsPtr Fonts;
__declspec(property(get=GetCustomXMLPart))
_CustomXMLPartPtr CustomXMLPart;
CustomXMLNodePtr GetCustomXMLNode ( );
error C2146: syntax error : missing ';' before identifier 'Fonts'
error C4430: missing type specifier - int assumed. Note: C++ does not
support default-int
I think I must missed some point here.
Any help would be very appreciated.
LeonXYZ