Demo: Writing a Demo Remoting Application

In this section we'll write a simple remoting server that remotes an object, and a remoting client that accesses and uses this object. The remoting server and client can be in different AppDomains, in different processes on the same computer, on different computers on the same network, or on different computers that can connect to each other through the Internet. It does not make any difference at all, as the remoting layer will handle it for us. For the example we'll design a simple object that will have two methods: one that returns a simple .NET object and another that returns a user-defined complex object.

Designing and Coding the Interface

The reason we need an interface is simple, and its function ...

Get Extending MFC Applications with the .NET Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.