 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Fotis Kokkoras Guest
|
Posted: Thu Aug 31, 2006 3:24 am Post subject: Please, provide some guidelines |
|
|
Hello people,
I am new to Delphi+web topics and need some guidelines.
I have an executable (written in C) that I want to execute
each time some data are posted from a web form. The source
of this executable is not available.
Is it possible to create a Delphi app that will be able to
receive the web posted data and then order this C app
to run, passing to it some parameters?
I want to call this Delphi app somehow like this:
http://www.myserver.com/delphiApp.exe?x=1&y="foo"
If this senario it viable, could someone please give me
directions on delphi components needed. If not, any
guideline to the "right" direction will be appreciated.
thanks in advance.
--
***************************************************Home****
* Fotis Kokkoras - PhD *
* Department of Informatics - Aristotle University *
* Thessaloniki 540 06 - GREECE *
*********************************************************** |
|
| Back to top |
|
 |
Wilbert van Leijen Guest
|
Posted: Tue Sep 05, 2006 11:23 pm Post subject: Re: Please, provide some guidelines |
|
|
"Fotis Kokkoras" <kokkoras (AT) csd (DOT) auth.gr> schreef in bericht
| Quote: | Is it possible to create a Delphi app that will be able to
receive the web posted data and then order this C app
to run, passing to it some parameters?
|
In general: no. Web modules cannot spawn their own subprocesses.
But one can always come up with some scenario, like: have it executed by the
scheduler of the webserver. If it writes out a file, it can be read by
another program. And this can be a program that is invoked from the adress
bar of a web browser. |
|
| Back to top |
|
 |
William Egge Guest
|
Posted: Wed Sep 06, 2006 12:31 am Post subject: Re: Please, provide some guidelines |
|
|
Is this app a cgi app? If so, then use Indy to make the http request.
If not, then use the windows api to launch the exe.
-Bill
ISAPI Tools
http://www.eggcentric.com |
|
| Back to top |
|
 |
Fotis Kokkoras Guest
|
Posted: Wed Sep 06, 2006 4:07 am Post subject: Re: Please, provide some guidelines |
|
|
"William Egge" <begge (AT) eggcentric (DOT) com> wrote in message
news:44fdd09f (AT) newsgroups (DOT) borland.com...
| Quote: | Is this app a cgi app? If so, then use Indy to make the http request.
If not, then use the windows api to launch the exe.
|
The C app is just a console app. No GUI, no ability to
communicate with the outer world. So, my idea was to
write a Delphi ISAPI app to receive the http request and
then call the C app from within the Delphi app using
windows api (is it shellExecute?)
any chance with it?
Fotis Kokkoras |
|
| Back to top |
|
 |
William Egge Guest
|
Posted: Wed Sep 06, 2006 4:52 am Post subject: Re: Please, provide some guidelines |
|
|
You might run into security problems. There is no Desktop under the IIS user
account, but I don't think that should be a problem. I don't see any other
reason it would not work.
Here is a "Delphisized" routine to call ShellExecute
procedure RunProgram(FileName: string; Params: string = '');
begin
ShellExecute(0, nil, PChar(FileName), PChar(Params), nil, SW_SHOWNORMAL);
end;
-Bill Egge |
|
| Back to top |
|
 |
Srinivasan Iyer Guest
|
Posted: Wed Sep 13, 2006 11:10 pm Post subject: Re: Please, provide some guidelines |
|
|
You might want to investigate Realthinclient SDK at
http://www.realthinclient.com/
Srini.
"Fotis Kokkoras" <kokkoras (AT) csd (DOT) auth.gr> wrote in message
news:44f61011 (AT) newsgroups (DOT) borland.com...
| Quote: | Hello people,
I am new to Delphi+web topics and need some guidelines.
I have an executable (written in C) that I want to execute
each time some data are posted from a web form. The source
of this executable is not available.
Is it possible to create a Delphi app that will be able to
receive the web posted data and then order this C app
to run, passing to it some parameters?
I want to call this Delphi app somehow like this:
http://www.myserver.com/delphiApp.exe?x=1&y="foo"
If this senario it viable, could someone please give me
directions on delphi components needed. If not, any
guideline to the "right" direction will be appreciated.
thanks in advance.
--
***************************************************Home****
* Fotis Kokkoras - PhD *
* Department of Informatics - Aristotle University *
* Thessaloniki 540 06 - GREECE *
***********************************************************
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|