3.3. Microsoft Windows で Hello World を実行する
Hello World の例では、ブローカーへの接続を作成し、グリーティングを含むメッセージを amq.topic キューに送信して、受信しなおします。成功すると、受信したメッセージがコンソールに出力されます。
手順
-
<install-dir>に移動し、Visual Studio でamqp.slnソリューションファイルを開きます。 - Build メニューから Build Solution を選択して、ソリューションをコンパイルします。
コマンドプロンプトウィンドウを開き、以下のコマンドを実行してメッセージを送受信します。
> cd <install-dir>\bin\Debug > HelloWorld-simple Hello World!
> cd <install-dir>\bin\Debug > HelloWorld-simple Hello World!Copy to Clipboard Copied! Toggle word wrap Toggle overflow