Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This topic is specific to a legacy technology that is retained for backward compatibility with existing applications and is not recommended for new development. Distributed applications should now be developed using the Windows Communication Foundation (WCF).
The following procedure shows how to use the command-line tools that ship with the Windows SDK to compile the basic remoting application built in the topics How to: Build a Remotable Type, How to: Build a Hosting Application, and How to: Build a Client Application. The instructions in each of these topics had you create a remoting directory with subdirectories called type, client, and listener.
To compile and run a basic remoting application
At the command prompt in the
remoting\typedirectory, type the following command:vbc /t:library RemotableType.vbcsc /noconfig /t:library RemotableType.csCopy
RemotableType.dllinto theremoting\clientandremoting\listenerdirectories.Copy
listener.exe.configinto theremoting\listenerdirectory.Copy
client.exe.configinto theremoting\clientdirectory.At the command-prompt in the
remoting\listenerdirectory, type the following command:vbc /r:RemotableType.dll Listener.vbcsc /noconfig /r:RemotableType.dll Listener.csAt the command-prompt in the
remoting\clientdirectory, type the following command:vbc /r:RemotableType.dll client.vbcsc /noconfig /r:RemotableType.dll Listener.cs csc /noconfig /r:RemotableType.dll Client.csAt the command prompt in the
remoting\listenerdirectory, typeListener.When the
Listenerapplication is running, open a new command prompt in theremoting\clientdirectory and typeClient.