次の手順では、 に付属しているコマンド ライン ツールを使用して、「方法 : リモート処理が可能な型を構築する」、「方法 : ホスト アプリケーションを構築する」、「方法 : クライアント アプリケーションを構築する」の各トピックで構築した基本的なリモート処理アプリケーションをコンパイルする方法について説明します。これらの各トピックの手順では、type、client、および listener というサブディレクトリがある remoting ディレクトリを作成しました。
基本的なリモート処理アプリケーションをコンパイルして実行するには
remoting\typeディレクトリから、コマンド プロンプトで次のコマンドを入力します。vbc /t:library RemotableType.vb csc /noconfig /t:library RemotableType.csRemotableType.dllをremoting\clientディレクトリとremoting\listenerディレクトリにコピーします。listener.exe.configをremoting\listenerディレクトリにコピーします。client.exe.configをremoting\clientディレクトリにコピーします。remoting\listenerディレクトリから、コマンド プロンプトで次のコマンドを入力します。vbc /r:RemotableType.dll Listener.vb csc /noconfig /r:RemotableType.dll Listener.csremoting\clientディレクトリから、コマンド プロンプトで次のコマンドを入力します。vbc /r:RemotableType.dll client.vb csc /noconfig /r:RemotableType.dll Listener.cs csc /noconfig /r:RemotableType.dll Client.csremoting\listenerディレクトリから、コマンド プロンプトで「Listener」と入力します。Listenerアプリケーションが実行されたら、remoting\clientディレクトリで新しいコマンド プロンプトを開き、「Client」と入力します。
関連項目
その他の技術情報
基本的な .NET Framework リモート処理アプリケーションの構築
.gif)
Copyright © 2007 by Microsoft Corporation.All rights reserved.