BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Please, provide some guidelines

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
Fotis Kokkoras
Guest





PostPosted: Thu Aug 31, 2006 3:24 am    Post subject: Please, provide some guidelines Reply with 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
Wilbert van Leijen
Guest





PostPosted: Tue Sep 05, 2006 11:23 pm    Post subject: Re: Please, provide some guidelines Reply with quote



"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





PostPosted: Wed Sep 06, 2006 12:31 am    Post subject: Re: Please, provide some guidelines Reply with 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.

-Bill
ISAPI Tools
http://www.eggcentric.com
Back to top
Fotis Kokkoras
Guest





PostPosted: Wed Sep 06, 2006 4:07 am    Post subject: Re: Please, provide some guidelines Reply with quote

"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





PostPosted: Wed Sep 06, 2006 4:52 am    Post subject: Re: Please, provide some guidelines Reply with quote

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





PostPosted: Wed Sep 13, 2006 11:10 pm    Post subject: Re: Please, provide some guidelines Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.