資源簡介
mfc調用webservice的客戶端,使用非托管。

代碼片段和文件信息
//?InvokeConsole.cpp?:?定義控制臺應用程序的入口點。
//
#include?“stdafx.h“
#include?
using?namespace?std;
//?以下兩行為調用WebService必須的
#include?“WebService.h“ //?包含WebService的代理文件
using?namespace?Debug; //?這里的Debug是生成文件的命名空間,這個命名與Web?Service的實現有關
int?_tmain(int?argc?_TCHAR*?argv[])
{
CComBSTR?res;
CComBSTR?bstr?=?“vckbase“;
CoInitialize(NULL);
HRESULT?hr?=?S_OK;
CDebug*?debug?=?new?CDebug();
hr?=?debug->Hi(bstr&res);
if(FAILED(hr))
{
cout<<“FAILED!“< }
else
{
//?處理結果
cout<<“Success!“< }
delete?debug;
CoUninitialize();
return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????671??2006-10-10?11:45??UnmanagedService\InvokeConsole\cn.eray.blog.DemoService\Debug.disco
?????文件???????3067??2006-10-10?11:45??UnmanagedService\InvokeConsole\cn.eray.blog.DemoService\Debug.wsdl
?????文件????????554??2006-10-10?11:45??UnmanagedService\InvokeConsole\cn.eray.blog.DemoService\results.discomap
?????文件???????6363??2006-10-10?11:45??UnmanagedService\InvokeConsole\cn.eray.blog.DemoService.h
?????文件????????674??2006-10-10?12:53??UnmanagedService\InvokeConsole\InvokeConsole.cpp
?????文件????????915??2006-10-10?11:43??UnmanagedService\InvokeConsole\InvokeConsole.sln
????..A..H.??????8704??2006-10-10?12:53??UnmanagedService\InvokeConsole\InvokeConsole.suo
?????文件???????4494??2006-10-10?11:48??UnmanagedService\InvokeConsole\InvokeConsole.vcproj
?????文件????????256??2006-10-10?12:28??UnmanagedService\InvokeConsole\InvokeConsole.vcproj.vspscc
?????文件???????1027??2006-10-10?11:43??UnmanagedService\InvokeConsole\ReadMe.txt
?????文件????????217??2006-10-10?11:43??UnmanagedService\InvokeConsole\stdafx.cpp
?????文件????????219??2006-10-10?11:48??UnmanagedService\InvokeConsole\stdafx.h
?????文件????????671??2006-10-10?11:45??UnmanagedService\InvokeConsole\temp\Debug.disco
?????文件???????3067??2006-10-10?11:45??UnmanagedService\InvokeConsole\temp\Debug.wsdl
?????文件????????554??2006-10-10?11:45??UnmanagedService\InvokeConsole\temp\results.discomap
?????文件?????????41??2006-10-10?11:45??UnmanagedService\InvokeConsole\WebService.h
?????文件????????671??2006-10-10?12:10??UnmanagedService\InvokeDemo\cn.eray.blog.DemoService\Debug.disco
?????文件???????3067??2006-10-10?12:10??UnmanagedService\InvokeDemo\cn.eray.blog.DemoService\Debug.wsdl
?????文件????????554??2006-10-10?12:10??UnmanagedService\InvokeDemo\cn.eray.blog.DemoService\results.discomap
?????文件???????6362??2006-10-10?12:10??UnmanagedService\InvokeDemo\cn.eray.blog.DemoService.h
?????文件??????41820??2006-10-10?15:15??UnmanagedService\InvokeDemo\InvokeDemo.aps
?????文件???????1504??2006-10-10?12:24??UnmanagedService\InvokeDemo\InvokeDemo.cpp
?????文件????????461??2006-10-10?12:08??UnmanagedService\InvokeDemo\InvokeDemo.h
?????文件???????4396??2006-10-10?12:10??UnmanagedService\InvokeDemo\InvokeDemo.rc
?????文件????????909??2006-10-10?12:08??UnmanagedService\InvokeDemo\InvokeDemo.sln
????..A..H.??????9728??2006-10-10?15:28??UnmanagedService\InvokeDemo\InvokeDemo.suo
?????文件???????5380??2006-10-10?12:11??UnmanagedService\InvokeDemo\InvokeDemo.vcproj
?????文件????????256??2006-10-10?14:19??UnmanagedService\InvokeDemo\InvokeDemo.vcproj.vspscc
?????文件???????2650??2006-10-10?12:55??UnmanagedService\InvokeDemo\InvokeDemoDlg.cpp
?????文件????????570??2006-10-10?12:10??UnmanagedService\InvokeDemo\InvokeDemoDlg.h
............此處省略24個文件信息
- 上一篇:MRF2圖像分割vc++代碼
- 下一篇:OS_頁面置換算法實驗c++程序代碼
評論
共有 條評論