emmai
2003-08-17 13:07:49 UTC
the #import directive is like this:
#import "D:\Program Files\Common Files\Microsoft
Shared\VBA\VBA6\VBE6EXT.OLB"
while compiling,errors generated as below:
Compiling...
temp.cpp
E:\emmai\temp\temp.cpp(8) : error C2772: #import referenced a type from a
missing type library; '__missing_type__' used as a placeholder
e:\emmai\temp\debug\vbe6ext.tlh(212) : error C2146: syntax error : missing
';' before identifier 'CommandBars'
e:\emmai\temp\debug\vbe6ext.tlh(212) : error C2501: '__missing_type__' :
missing storage-class or type specifiers
e:\emmai\temp\debug\vbe6ext.tlh(212) : error C2501: 'CommandBars' : missing
storage-class or type specifiers
e:\emmai\temp\debug\vbe6ext.tlh(233) : error C2146: syntax error : missing
';' before identifier 'GetCommandBars'
e:\emmai\temp\debug\vbe6ext.tlh(233) : error C2501: '__missing_type__' :
missing storage-class or type specifiers
e:\emmai\temp\debug\vbe6ext.tlh(255) : error C2061: syntax error :
identifier '__missing_type__'
e:\emmai\temp\debug\vbe6ext.tli(32) : error C2143: syntax error : missing
';' before 'tag::id'
e:\emmai\temp\debug\vbe6ext.tli(32) : error C2433: '__missing_type__' :
'inline' not permitted on data declarations
e:\emmai\temp\debug\vbe6ext.tli(32) : error C2501: '__missing_type__' :
missing storage-class or type specifiers
e:\emmai\temp\debug\vbe6ext.tli(32) : fatal error C1004: unexpected end of
file found
Error executing cl.exe.
temp.exe - 11 error(s), 0 warning(s)
#import "D:\Program Files\Common Files\Microsoft
Shared\VBA\VBA6\VBE6EXT.OLB"
while compiling,errors generated as below:
Compiling...
temp.cpp
E:\emmai\temp\temp.cpp(8) : error C2772: #import referenced a type from a
missing type library; '__missing_type__' used as a placeholder
e:\emmai\temp\debug\vbe6ext.tlh(212) : error C2146: syntax error : missing
';' before identifier 'CommandBars'
e:\emmai\temp\debug\vbe6ext.tlh(212) : error C2501: '__missing_type__' :
missing storage-class or type specifiers
e:\emmai\temp\debug\vbe6ext.tlh(212) : error C2501: 'CommandBars' : missing
storage-class or type specifiers
e:\emmai\temp\debug\vbe6ext.tlh(233) : error C2146: syntax error : missing
';' before identifier 'GetCommandBars'
e:\emmai\temp\debug\vbe6ext.tlh(233) : error C2501: '__missing_type__' :
missing storage-class or type specifiers
e:\emmai\temp\debug\vbe6ext.tlh(255) : error C2061: syntax error :
identifier '__missing_type__'
e:\emmai\temp\debug\vbe6ext.tli(32) : error C2143: syntax error : missing
';' before 'tag::id'
e:\emmai\temp\debug\vbe6ext.tli(32) : error C2433: '__missing_type__' :
'inline' not permitted on data declarations
e:\emmai\temp\debug\vbe6ext.tli(32) : error C2501: '__missing_type__' :
missing storage-class or type specifiers
e:\emmai\temp\debug\vbe6ext.tli(32) : fatal error C1004: unexpected end of
file found
Error executing cl.exe.
temp.exe - 11 error(s), 0 warning(s)