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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi Application from CFM

Status
Not open for further replies.

ketankshah

IS-IT--Management
Jan 11, 2001
121
IN
How can I run a Delphi application from CFM ?
 
Yes. Make a COM object of it, then you register it on your server. Connect to it and instantiate it by the following lines of code:

<CFTRY>
<CFOBJECT
ACTION=&quot;CONNECT&quot;
CLASS=&quot;YourClassName&quot;
NAME=&quot;objMyObject&quot;
TYPE=&quot;COM&quot;>
<CFCATCH>
<CFOBJECT
ACTION=&quot;CREATE&quot;
CLASS=&quot;YourClassName&quot;
NAME=&quot;objMyObject&quot;
TYPE=&quot;COM&quot;>
</CFCATCH>
</CFTRY>

Good luck, let me know if it worked!


<webguru>iqof188</webguru>
 
In CF 4.5, you can also use the <cfexecute> tag to run any executable on the server. There's a custom tag in the Allaire tag gallery that does about the same thing if you're running an earlier version of CF.

GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top