读OutLook联系人,#import MSOUTL.OLB,vs2005编译能过,VC6报错 missing storage-class
在程序中
#import "C:\Program Files\Common Files\Microsoft Shared\OFFICE12\mso.dll" rename_namespace("Outlook") rename("RGB", "OutlookRGB")
#import ".\Outlook Files\OFFICE12\msoutl.olb" rename_namespace("Outlook") rename("CopyFile", "OutlookCopyFile")
同样的CPP文件,在VS2005中编译能过,在VC6.0上,报错:
l:\test_vc6\olcontacttest\release\msoutl.tlh(1254) : error C2146: syntax error : missing ';' before identifier 'MouseIcon'
l:\test_vc6\olcontacttest\release\msoutl.tlh(1254) : error C2501: 'PicturePtr' : missing storage-class or type specifiers
l:\test_vc6\olcontacttest\release\msoutl.tlh(1254) : error C2501: 'MouseIcon' : missing storage-class or type specifiers
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
这是为什么呢?