O'Reilly logo

Extending MFC Applications with the .NET Framework by Nishant Sivakumar, Tom Archer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing a Remoting Server in a Windows Service

So far we've seen simple examples where the remoting server is in a console application or on an MFC GUI application. But for real-life purposes, it's best to put the remoting server in a Windows Service. Basically Windows Services start before the user is logged in; this comes in mighty handy, because remoting servers might usually be run on Network servers on which users typically don't remain logged in except for administrative purposes. In this section we'll see how to write a Windows Service and put a remoting server in it. We'll use the service classes provided by the .NET Framework to write our service. The demo program shows how to write a simple expiration service, where a program can ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required