ATL写OFFICE插件的问题??急求大虾帮助!
新建立的一个ATL工程 用了_IDTExtensibility2接口 在#import了这几个文件后
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE11\\mso.dll" \
rename_namespace("Office") named_guids,exclude("Pages")
using namespace Office;
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.olb" rename_namespace("VBE6")
using namespace VBE6;
#import "D:\\tools\\office\\OFFICE11\\MSWORD.OLB" rename("ExitWindows","ExitWindowsEx")
#import "D:\\tools\\office\\OFFICE11\\MSWORD.OLB" \
rename_namespace("Word") raw_interfaces_only, named_guids ,exclude("Pages")
using namespace Word;
在编译的时候出现了
Compiling...
StdAfx.cpp
e:\test\wordaddin\debug\mso.tlh(1089) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
e:\test\wordaddin\debug\vbe6ext.tlh(212) : error C2146: syntax error : missing ';' before identifier 'CommandBars'
e:\test\wordaddin\debug\vbe6ext.tlh(212) : error C2501: '__missing_type__' : missing storage-class or type specifiers
e:\test\wordaddin\debug\vbe6ext.tlh(212) : error C2208: 'struct Office::CommandBars' : no members defined using this type
e:\test\wordaddin\debug\vbe6ext.tlh(233) : error C2146: syntax error : missing ';' before identifier 'GetCommandBars'
e:\test\wordaddin\debug\vbe6ext.tlh(233) : error C2501: '__missing_type__' : missing storage-class or type specifiers
e:\test\wordaddin\debug\vbe6ext.tlh(255) : error C2061: syntax error : identifier '__missing_type__'
e:\test\wordaddin\debug\vbe6ext.tli(32) : error C2143: syntax error : missing ';' before 'tag::id'
e:\test\wordaddin\debug\vbe6ext.tli(32) : error C2433: '__missing_type__' : 'inline' not permitted on data declarations
e:\test\wordaddin\debug\vbe6ext.tli(32) : error C2501: '__missing_type__' : missing storage-class or type specifiers
e:\test\wordaddin\debug\vbe6ext.tli(32) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
wordaddin.dll - 10 error(s), 1 warning(s)
我用的VC6。0 求高手帮助啊!!