如题

解决方案 »

  1.   

    就是用delphi操作java简单的应用啊
      

  2.   

    ShellExecute 调用应用程序另外就是调用java webservice了
      

  3.   

    我要实现java能向delphi程序传参数 delphi也可以向java程序传参数
      

  4.   

    ShellExecute 第四个参数就是命令行参数,每个参数用空格分开,首先你的程序得支持命令行参数
      

  5.   

    uses comobj;
    var
    url:string;
    xmlHttp:Olevariant;
    responseText:Widestring;
    begin
    url:='http://..............';//在这里传递参数
    xmlHttp:=CreateOleObject('Msxml2.XMLHTTP');
    xmlHttp.open('POST',url,false);
    xmlHttp.send(............);
    responseText:=xmlHttp.responseText;
    if xmlHttp.status='200' then
    ....................
    else .......................;
      

  6.   

    其中responseText就是你的java web程序response的内容,你解析一下就可以了
      

  7.   

    如果Java是WEB程序,思路一样。
    无非就是用Delphi的indy调用Servlet了
      

  8.   

    直接就用indy来玩呗
    SERVLET'S url+parameters通过idhttp.POST 提交至servlet