Q&A

  • ISAPI에서 외부실행파일 실행이 안되여
ISAPI로 DLL을 만들었습니다..

함수에서 수행하는 내용은 Consol App를 실행시키는 겁니다..

소스는 다음과 같습니다.----------------------------------------------

procedure TMdts.MdtsLoadDataAction(Sender: TObject; Request: TWebRequest;

Response: TWebResponse; var Handled: Boolean);

var

temp,str1,str2 : string;

begin

Request.QueryFields.Values['str1'];

Request.QueryFields.Values['str2'];

temp := 'c:testbbbb.exe ' + str1 + ' ' + str2;

try

WinExec(PChar(temp),SW_HIDE);

finally

end;



temp := 'c:testaaa.exe ' + str2;

try

WinExec(PChar(temp),SW_HIDE);

finally

end;

end;

----------------------------------------------------------------------------------

그런데 에러는 안나는 데.. 결과값이 안나오는 군요...

이소스를 그대로 보통 어플에 적용하면 잘 작동합니다..

이유가 무엇인지 도저히 모르겠군요...

참 브라우저에서 호출할때는 다음과 같이 했습니다..

http://localhost/dsdd.dll/load?str1=asdfasdf&str2=asdfsdf

여러 고수님들의 저언을 부탁드립니다..

-= caveman =-

0  COMMENTS