Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.99 KB

tutorial.md

File metadata and controls

45 lines (32 loc) · 1.99 KB
title description ms.assetid keywords ms.topic ms.date
Tutorial
This tutorial takes you through the steps required to create a simple, single-client, single-server distributed application from an existing standalone application.
afdfa037-58c0-4dcf-aa27-6839db0515e6
Remote Procedure Call RPC , tutorial
article
05/31/2018

Tutorial

This tutorial takes you through the steps required to create a simple, single-client, single-server distributed application from an existing standalone application. These steps are:

  • Create interface definition and application configuration files.
  • Use the MIDL compiler to generate C-language client and server stubs and headers from those files.
  • Write a client application that manages its connection to the server.
  • Write a server application that contains the actual remote procedures.
  • Compile and link these files to the RPC run-time library to produce the distributed application.

The client application passes a character string to the server in a remote procedure call, and the server prints the string "Hello, World" to its standard output.

The complete source files for this example application, with additional code to handle command-line input and to output various status messages to the user, are in the RPC\Hello directory of the Platform Software Development Kit (SDK).

This section presents its discussion in the following topics: