Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ShellExecute in an ISAPI Dll.

Status
Not open for further replies.

shubha

Programmer
Jul 3, 2001
1
IN
Hi,
I would like to know whether it is possible to successfully implement calling the ShellExecute function from an ISAPI Dll. ShellExecute works perfectly fine from an ordinary delphi exe program. But when i use the same shellexecute inside an ISAPI Dll again created in Delphi, to call another exe it fails to do so. To explain further, I have created a web server application in delphi which is an ISAPI. Within this ISAPI, i have a page producer component which enables the first html page to come up in my browser(IE or Netscape). My first page contains a button. On click of this button which is within the IE browser i want to run an exe program. To enable this, i am calling shellexecute inside the web action item no.1. But shellexecute is failing to call the exe program.
Can anybody let me know why shellexecute fails within a DLL or if it works then how do i make it work?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top