tagCANDY CGI VBレスキュー(花ちゃん)の Visual Basic 6.0用 掲示板
VBレスキュー(花ちゃん)の Visual Basic 6.0用 掲示板
[ツリー表示へ]  [ワード検索]  [Home]

タイトル Re^5: VB6で教えてください。
投稿日: 2009/02/02(Mon) 16:53
投稿者美露紅
詳しく聞いてみたのですが、ポートはこちらで指定できるみたいです。
一応コマンド表は貰いました。
自動実行はWindowsから直接実行させます。

こんな感じでJAVAでプロトコルが添付されてました。

    JTextField getTextField()
    {
        if (textField == null)
        {
            final JTextField instance;
            instance = new JTextField(30);
            instance.addActionListener(new ActionListener()
            {
                public void actionPerformed(ActionEvent e)
                {
                    String line = instance.getText();
                    out.println(line);
                    report(true, line);
                    instance.setText("");
                }
            });
            textField = instance;
        }
        return textField;
    }

    /**
     * Listens to answers from the server and writes incoming data into the protocol text area.
     */
    void listen()
    {
        Runnable runnable = new Runnable()
        {

            public void run()
            {
                try
                {
                    while (true)
                    {
                        report(false, in.readLine());
                    }
                }
                catch (IOException ex)
                {
                    System.err.println(ex.getMessage());
                }
            }
        };
        Thread thread = new Thread(runnable);
        thread.start();
    }

指定のコマンドを送って受信する方法を教えてください。
(サンプルプログラムはございますか??)

色々お手数お掛けしてすみません.....。

- 関連一覧ツリー をクリックするとツリー全体を一括表示します)

古いスレッドにレスはつけられません。