| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1900 人关注过本帖
标题:VS2005 MFC 导入Microsoft Outllook 2010类型库文件MSOUTL.OLB发生错误
只看楼主 加入收藏
shetan
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2013-3-25
结帖率:0
收藏
已结贴  问题点数:20 回复次数:3 
VS2005 MFC 导入Microsoft Outllook 2010类型库文件MSOUTL.OLB发生错误
程序代码:
CApplication.h

// 从类型库向导中用“添加类”创建的计算机生成的 IDispatch 包装类

#import "C:\\Program Files\\Microsoft Office\\Office14\\MSOUTL.OLB" 


// CApplication 包装类

class CApplication : public COleDispatchDriver
{
public:
    CApplication(){} // 调用 COleDispatchDriver 默认构造函数
    CApplication(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
    CApplication(const CApplication& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}

    // 属性
public:

    // 操作
public:


    // _Application 方法
public:
    LPDISPATCH get_Application()
    {
        LPDISPATCH result;
        InvokeHelper(0xf000, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    long get_Class()
    {
        long result;
        InvokeHelper(0xf00a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH get_Session()
    {
        LPDISPATCH result;
        InvokeHelper(0xf00b, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH get_Parent()
    {
        LPDISPATCH result;
        InvokeHelper(0xf001, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH get_Assistant()
    {
        LPDISPATCH result;
        InvokeHelper(0x114, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    CString get_Name()
    {
        CString result;
        InvokeHelper(0x3001, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
        return result;
    }
    CString get_Version()
    {
        CString result;
        InvokeHelper(0x116, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH ActiveExplorer()
    {
        LPDISPATCH result;
        InvokeHelper(0x111, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH ActiveInspector()
    {
        LPDISPATCH result;
        InvokeHelper(0x112, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH CreateItem(long ItemType)
    {
        LPDISPATCH result;
        static BYTE parms[] = VTS_I4 ;
        InvokeHelper(0x10a, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, ItemType);
        return result;
    }
    LPDISPATCH CreateItemFromTemplate(LPCTSTR TemplatePath, VARIANT& InFolder)
    {
        LPDISPATCH result;
        static BYTE parms[] = VTS_BSTR VTS_VARIANT ;
        InvokeHelper(0x10b, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, TemplatePath, &InFolder);
        return result;
    }
    LPDISPATCH CreateObject(LPCTSTR ObjectName)
    {
        LPDISPATCH result;
        static BYTE parms[] = VTS_BSTR ;
        InvokeHelper(0x115, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, ObjectName);
        return result;
    }
    LPDISPATCH GetNamespace(LPCTSTR Type)
    {
        LPDISPATCH result;
        static BYTE parms[] = VTS_BSTR ;
        InvokeHelper(0x110, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, Type);
        return result;
    }
    void Quit()
    {
        InvokeHelper(0x113, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
    }
    LPDISPATCH get_COMAddIns()
    {
        LPDISPATCH result;
        InvokeHelper(0x118, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH get_Explorers()
    {
        LPDISPATCH result;
        InvokeHelper(0x119, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH get_Inspectors()
    {
        LPDISPATCH result;
        InvokeHelper(0x11a, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH get_LanguageSettings()
    {
        LPDISPATCH result;
        InvokeHelper(0x11b, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    CString get_ProductCode()
    {
        CString result;
        InvokeHelper(0x11c, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH get_AnswerWizard()
    {
        LPDISPATCH result;
        InvokeHelper(0x11d, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    long get_FeatureInstall()
    {
        long result;
        InvokeHelper(0x11e, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
        return result;
    }
    void put_FeatureInstall(long newValue)
    {
        static BYTE parms[] = VTS_I4 ;
        InvokeHelper(0x11e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms, newValue);
    }
    LPDISPATCH ActiveWindow()
    {
        LPDISPATCH result;
        InvokeHelper(0x11f, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH CopyFile(LPCTSTR FilePath, LPCTSTR DestFolderPath)
    {
        LPDISPATCH result;
        static BYTE parms[] = VTS_BSTR VTS_BSTR ;
        InvokeHelper(0xfa62, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, FilePath, DestFolderPath);
        return result;
    }
    LPDISPATCH AdvancedSearch(LPCTSTR Scope, VARIANT& Filter, VARIANT& SearchSubFolders, VARIANT& Tag)
    {
        LPDISPATCH result;
        static BYTE parms[] = VTS_BSTR VTS_VARIANT VTS_VARIANT VTS_VARIANT ;
        InvokeHelper(0xfa65, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, Scope, &Filter, &SearchSubFolders, &Tag);
        return result;
    }
    BOOL IsSearchSynchronous(LPCTSTR LookInFolders)
    {
        BOOL result;
        static BYTE parms[] = VTS_BSTR ;
        InvokeHelper(0xfa6c, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms, LookInFolders);
        return result;
    }
    void GetNewNickNames(VARIANT * pvar)
    {
        static BYTE parms[] = VTS_PVARIANT ;
        InvokeHelper(0xfa48, DISPATCH_METHOD, VT_EMPTY, NULL, parms, pvar);
    }
    LPDISPATCH get_Reminders()
    {
        LPDISPATCH result;
        InvokeHelper(0xfa99, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    CString get_DefaultProfileName()
    {
        CString result;
        InvokeHelper(0xfad6, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
        return result;
    }
    BOOL get_IsTrusted()
    {
        BOOL result;
        InvokeHelper(0xfbf3, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH GetObjectReference(LPDISPATCH Item, long ReferenceType)
    {
        LPDISPATCH result;
        static BYTE parms[] = VTS_DISPATCH VTS_I4 ;
        InvokeHelper(0xfbd6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms, Item, ReferenceType);
        return result;
    }
    LPDISPATCH get_Assistance()
    {
        LPDISPATCH result;
        InvokeHelper(0xfc08, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH get_TimeZones()
    {
        LPDISPATCH result;
        InvokeHelper(0xfc29, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    LPDISPATCH get_PickerDialog()
    {
        LPDISPATCH result;
        InvokeHelper(0xfc65, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
        return result;
    }
    void RefreshFormRegionDefinition(LPCTSTR RegionName)
    {
        static BYTE parms[] = VTS_BSTR ;
        InvokeHelper(0xfc7f, DISPATCH_METHOD, VT_EMPTY, NULL, parms, RegionName);
    }

    // _Application 属性
public:

};

编译产生如下错误,网上查了些资料还是无法解决,求高手帮忙啊

1>------ 已启动生成: 项目: ImportTypeLib, 配置: Debug Win32 ------
1>正在编译...
1>ImportTypeLibDlg.cpp
1>e:\notebook\windows c++编程\importtypelib\importtypelib\capplication.h(3) : warning C4278: 'CopyFile': identifier in type library 'C:\\Program Files\\Microsoft Office\\Office14\\MSOUTL.OLB' is already a macro; use the 'rename' qualifier
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6678) : error C2146: syntax error : missing ';' before identifier 'PickerDialog'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6678) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6678) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6680) : error C2146: syntax error : missing ';' before identifier 'Assistance'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6680) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6680) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6690) : error C2146: syntax error : missing ';' before identifier 'Assistant'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6690) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6690) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6696) : error C2146: syntax error : missing ';' before identifier 'COMAddIns'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6696) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6696) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6702) : error C2146: syntax error : missing ';' before identifier 'LanguageSettings'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6702) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6702) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6706) : error C2146: syntax error : missing ';' before identifier 'AnswerWizard'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6706) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6706) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6718) : error C2146: syntax error : missing ';' before identifier 'GetAssistant'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6718) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6718) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6718) : warning C4183: 'GetAssistant': missing return type; assumed to be a member function returning 'int'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6733) : error C2146: syntax error : missing ';' before identifier 'GetCOMAddIns'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6733) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6733) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6733) : warning C4183: 'GetCOMAddIns': missing return type; assumed to be a member function returning 'int'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6736) : error C2146: syntax error : missing ';' before identifier 'GetLanguageSettings'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6736) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6736) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6736) : warning C4183: 'GetLanguageSettings': missing return type; assumed to be a member function returning 'int'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6738) : error C2146: syntax error : missing ';' before identifier 'GetAnswerWizard'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6738) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6738) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6738) : warning C4183: 'GetAnswerWizard': missing return type; assumed to be a member function returning 'int'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6761) : error C2146: syntax error : missing ';' before identifier 'GetAssistance'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6761) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6761) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6761) : warning C4183: 'GetAssistance': missing return type; assumed to be a member function returning 'int'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6763) : error C2146: syntax error : missing ';' before identifier 'GetPickerDialog'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6763) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6763) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6763) : warning C4183: 'GetPickerDialog': missing return type; assumed to be a member function returning 'int'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6984) : error C2146: syntax error : missing ';' before identifier 'CreateContactCard'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6984) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6985) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(6985) : warning C4183: 'CreateContactCard': missing return type; assumed to be a member function returning 'int'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(7868) : error C2146: syntax error : missing ';' before identifier 'CommandBars'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(7868) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(7868) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(7906) : error C2146: syntax error : missing ';' before identifier 'GetCommandBars'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(7906) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(7906) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(7906) : warning C4183: 'GetCommandBars': missing return type; assumed to be a member function returning 'int'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(17798) : error C2146: syntax error : missing ';' before identifier 'CommandBars'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(17798) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(17798) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(17842) : error C2146: syntax error : missing ';' before identifier 'GetCommandBars'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(17842) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(17842) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(17842) : warning C4183: 'GetCommandBars': missing return type; assumed to be a member function returning 'int'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(20856) : error C2556: 'Outlook::AddressEntryPtr Outlook::_AppointmentItem::GetOrganizer(void)' : overloaded function differs only by return type from '_bstr_t Outlook::_AppointmentItem::GetOrganizer(void)'
1>        e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(20754) : see declaration of 'Outlook::_AppointmentItem::GetOrganizer'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(20856) : error C2371: 'Outlook::_AppointmentItem::GetOrganizer' : redefinition; different basic types
1>        e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(20754) : see declaration of 'Outlook::_AppointmentItem::GetOrganizer'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27393) : error C2143: syntax error : missing ';' before 'Outlook::_Application::GetAssistant'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27393) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27393) : error C2497: 'AssistantPtr' : 'implementation_key' can only be applied to function declarations
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27393) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27403) : error C2143: syntax error : missing ';' before 'Outlook::_Application::GetCOMAddIns'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27403) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27403) : error C2497: 'COMAddInsPtr' : 'implementation_key' can only be applied to function declarations
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27403) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27406) : error C2143: syntax error : missing ';' before 'Outlook::_Application::GetLanguageSettings'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27406) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27406) : error C2497: 'LanguageSettingsPtr' : 'implementation_key' can only be applied to function declarations
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27406) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27408) : error C2143: syntax error : missing ';' before 'Outlook::_Application::GetAnswerWizard'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27408) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27408) : error C2497: 'AnswerWizardPtr' : 'implementation_key' can only be applied to function declarations
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27408) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27420) : error C2143: syntax error : missing ';' before 'Outlook::_Application::GetAssistance'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27420) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27420) : error C2497: 'IAssistancePtr' : 'implementation_key' can only be applied to function declarations
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27420) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27422) : error C2143: syntax error : missing ';' before 'Outlook::_Application::GetPickerDialog'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27422) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27422) : error C2497: 'PickerDialogPtr' : 'implementation_key' can only be applied to function declarations
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27422) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27468) : error C2143: syntax error : missing ';' before 'Outlook::_NameSpace::CreateContactCard'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27468) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27468) : error C2497: 'ContactCardPtr' : 'implementation_key' can only be applied to function declarations
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27468) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27599) : error C2143: syntax error : missing ';' before 'Outlook::_Inspector::GetCommandBars'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27599) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27599) : error C2497: '_CommandBarsPtr' : 'implementation_key' can only be applied to function declarations
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27599) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(29331) : error C2143: syntax error : missing ';' before 'Outlook::_Explorer::GetCommandBars'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(29331) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(29331) : error C2497: '_CommandBarsPtr' : 'implementation_key' can only be applied to function declarations
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(29331) : error C2086: 'int Outlook::_CommandBarsPtr' : redefinition
1>        e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(27599) : see declaration of 'Outlook::_CommandBarsPtr'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(29331) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(30009) : error C2556: 'Outlook::AddressEntryPtr Outlook::_AppointmentItem::GetOrganizer(void)' : overloaded function differs only by return type from '_bstr_t Outlook::_AppointmentItem::GetOrganizer(void)'
1>        e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(20754) : see declaration of 'Outlook::_AppointmentItem::GetOrganizer'
1>e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(30009) : error C2371: 'Outlook::_AppointmentItem::GetOrganizer' : redefinition; different basic types
1>        e:\notebook\windows c++编程\importtypelib\importtypelib\debug\msoutl.tlh(20754) : see declaration of 'Outlook::_AppointmentItem::GetOrganizer'
1>生成日志保存在“file://e:\Notebook\Windows C++编程\ImportTypeLib\ImportTypeLib\Debug\BuildLog.htm”
1>ImportTypeLib - 92 个错误,10 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
搜索更多相关主题的帖子: Microsoft import 
2013-10-15 16:11
yuccn
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:何方
等 级:版主
威 望:167
帖 子:6815
专家分:42393
注 册:2010-12-16
收藏
得分:20 
估计还有很多文件代码没有放出来

你是写COM?

我行我乐
公众号:逻辑客栈
我的博客:
https://blog.yuccn. net
2013-10-15 16:55
shetan
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2013-3-25
收藏
得分:0 
  需要用OLE自动化技术解析Outlook 2010 下的PST文件,有资料参考先导入类型库MSOUTL.OLB,然后利用Outlook对象模型进行解析。
网上多说的是要解决命名冲突之类的问题,不太清楚如何下手,搞了两天都没有找到解决方案。。。
2013-10-15 17:05
sstily
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2016-6-2
收藏
得分:0 
回复 3楼 shetan
楼主这个问题解决没有,我现在也苦逼的遇到这个问题了,也是要解析pst文件....
2016-06-02 14:37
快速回复:VS2005 MFC 导入Microsoft Outllook 2010类型库文件MSOUTL.OLB发生错误 ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.032770 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved