Freigeben über


Cloud and Web Programming in Visual C++

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

In C++, you have several options for connecting to the web and the cloud.

Windows Azure Mobile Services
Provides native APIs that you can use in Windows Store apps or Windows desktop apps to connect to Windows Azure Mobile Services. Although most of the examples on the website are in C#, you can also use C++. For more information, see Quickstart: Adding a mobile service using C++.

Live REST Interface
Provides REST endpoints that you can use in Windows Store apps, Windows desktop apps, or C++ Linux applications to connect to Live services such as SkyDrive, Outlook.com, and Skype. C++ apps use these endpoints directly rather than going through the Live SDK, which is for .NET apps only.

C++ REST SDK (Codename "Casablanca")
Provides convenient asynchronous HTTP wrapper methods that are designed for cross-platform compatibility and for use in desktop apps on operating systems back to Windows 7 and Windows Server 2012. You can also use these in Universal Windows Platform apps; however, for apps that target only Universal Windows Platform, we recommend that you use the Windows::Web:HttpClient class. The C++ REST SDK (codename "Casablanca") also provides helper classes that support REST calls and convert JSON data into C++ types. The SDK is available on CodePlex and it contains sample files such as live_connect.h, which provides helper methods for connecting to Live services.

Windows::Web::Http::HttpClient
A Windows Runtime HTTP client class modeled on the .NET Framework class of the same name in the System.Web namespace. HttpClient fully supports asynchronous upload and download over HTTP, and pipeline filters that enable the insertion of custom HTTP handlers into the pipeline. The Windows SDK includes sample filters for metered networks, OAuth authentication, and more.

IXMLHTTPRequest2 interface
Provides a native COM interface that you can use in Windows Store apps or Windows desktop apps to connect to the Internet over HTTP and issue GET, PUT, and other HTTP commands. For more information, see Walkthrough: Connecting Using Tasks and XML HTTP Requests.

Windows Internet (WinInet)
Windows API that you can use in Windows desktop apps to connect to the Internet.

See Also

Visual C++
Connecting to networks and web services (Windows Store apps using C#/VB/C++ and XAML)