国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > 綜合 > 正文

webservice系列教學(10)-如何調用webservice(vc1)

2024-07-21 02:21:46
字體:
來源:轉載
供稿:網友

最大的網站源碼資源下載站,

4.10使用vc調用
需下載mssoaptoolkit20.exe
    引用
#import "msxml3.dll"
using namespace msxml2;
#import "c:/program files/common files/mssoap/binaries/mssoap1.dll" exclude("istream", "isequentialstream", "_large_integer", "_ularge_integer", "tagstatstg", "_filetime") raw_interfaces_only
using namespace mssoaplib;
例程:
新建工程àmfc appwizard(exe)[ mclient]àstep1à基本對話à其他默認值即可
修改源文件:
< stdafx.h>
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(afx_stdafx_h__045cd307_9518_4af1_8ce3_8ffe38d1acb2__included_)
#define afx_stdafx_h__045cd307_9518_4af1_8ce3_8ffe38d1acb2__included_

#if _msc_ver > 1000
#pragma once
#endif // _msc_ver > 1000

#define vc_extralean        // exclude rarely-used stuff from windows headers

#include <afxwin.h>         // mfc core and standard components
#include <afxext.h>         // mfc extensions
#include <afxdisp.h>        // mfc automation classes
#include <afxdtctl.h>       // mfc support for internet explorer 4 common controls
#ifndef _afx_no_afxcmn_support
#include <afxcmn.h>         // mfc support for windows common controls
#endif // _afx_no_afxcmn_support



#import "msxml3.dll"
using namespace msxml2;

#import "c:/program files/common files/mssoap/binaries/mssoap1.dll" exclude("istream", "isequentialstream", "_large_integer", "_ularge_integer", "tagstatstg", "_filetime") raw_interfaces_only
using namespace mssoaplib;


#define msg(message) /
{ /
    ::messagebox(null,_t(message),null,mb_ok | mb_iconexclamation| mb_applmodal);/
    goto cleanup; /
}


#define check_hresult(hr, message) /
if (failed(hr)) /
{ /
    msg(message); /
}


//{{afx_insert_location}}
// microsoft visual c++ will insert additional declarations immediately before the previous line.

#endif // !defined(afx_stdafx_h__045cd307_9518_4af1_8ce3_8ffe38d1acb2__included_)
<mclient.h>
// mclient.h : main header file for the mclient application
//

#if !defined(afx_mclient_h__9a397da6_5a62_4aef_be5e_6c7629322ecc__included_)
#define afx_mclient_h__9a397da6_5a62_4aef_be5e_6c7629322ecc__included_

#if _msc_ver > 1000
#pragma once
#endif // _msc_ver > 1000

#ifndef __afxwin_h__
    #error include 'stdafx.h' before including this file for pch
#endif

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// cmclientapp:
// see mclient.cpp for the implementation of this class
//

class cmclientapp : public cwinapp
{
public:
    cmclientapp();

// overrides
    // classwizard generated virtual function overrides
    //{{afx_virtual(cmclientapp)
    public:
    virtual bool initinstance();
    //}}afx_virtual

// implementation

    //{{afx_msg(cmclientapp)
        // note - the classwizard will add and remove member functions here.
        //    do not edit what you see in these blocks of generated code !
    //}}afx_msg
    declare_message_map()
};


/////////////////////////////////////////////////////////////////////////////

//{{afx_insert_location}}
// microsoft visual c++ will insert additional declarations immediately before the previous line.

#endif // !defined(afx_mclient_h__9a397da6_5a62_4aef_be5e_6c7629322ecc__included_)
 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 罗山县| 建始县| 安仁县| 泰安市| 阿坝县| 正镶白旗| 朝阳县| 刚察县| 广饶县| 阳东县| 黄石市| 凤山县| 烟台市| 岳阳县| 盈江县| 密山市| 宁陕县| 平阴县| 鹿泉市| 封开县| 天台县| 巴楚县| 新津县| 新绛县| 资中县| 茶陵县| 凤山市| 西藏| 海安县| 象山县| 开平市| 和平区| 巴塘县| 莱西市| 聊城市| 宁阳县| 岑巩县| 游戏| 安宁市| 新化县| 公主岭市|