首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Win8 HTTP API 跟 异步编程 API

2012-07-15 
Win8 HTTP API 和 异步编程 APIWin8 HTTP API 和 异步编程 APIMetro里推荐使用的APIHTTP: IXMLHTTPRequest

Win8 HTTP API 和 异步编程 API

Win8 HTTP API 和 异步编程 APIMetro里推荐使用的APIHTTP: IXMLHTTPRequest2XML: XmlDocumentMetro 异步编程

用于本地c++编程APIConcurrency::task

// basic-task.cpp// compile with: /EHsc#include <ppltasks.h>#include <iostream>using namespace Concurrency;using namespace std;int wmain(){task<int> t([]() {    return 42;});t.wait();wcout << t.get() << endl;}/* Output:42*/

用于WinRT c++编程APIWindows::Foundation::IAsyncXXX

Windows::Foundation::IAsyncActionRepresents an asynchronous action.Windows::Foundation::IAsyncActionWithProgress<TProgress>Represents an asynchronous action that reports progress.Windows::Foundation::IAsyncOperation<TResult>Represents an asynchronous operation that returns a result.Windows::Foundation::IAsyncOperationWithProgress<TResult, TProgress>Represents an asynchronous operation that returns a result and reports progress.

热点排行