国产探花免费观看_亚洲丰满少妇自慰呻吟_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_)
 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 罗源县| 沧源| 青龙| 五家渠市| 上杭县| 伊吾县| 宁河县| 江华| 长宁区| 当雄县| 旅游| 鄄城县| 兴安盟| 水富县| 鸡东县| 亳州市| 蒲江县| 杭锦旗| 连城县| 界首市| 固原市| 二连浩特市| 女性| 高陵县| 当雄县| 赣州市| 鄂伦春自治旗| 沾益县| 遂川县| 资溪县| 溧阳市| 读书| 红原县| 穆棱市| 新昌县| 盐源县| 宝兴县| 开封县| 五寨县| 德令哈市| 保德县|