Solved

DLL in Delphi 3

Posted on 1998-09-24
6
211 Views
Last Modified: 2010-04-06
How can I run an *.exe file from a DLL using Delphi 3 ?
0
Comment
Question by:duduf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 5

Accepted Solution

by:
ronit051397 earned 100 total points
ID: 1340757
- Open the DLL dpr.
- In Delphi Menu enter Run\Parameters\
- In the Host Application write the full path of your exe.
0
 

Author Comment

by:duduf
ID: 1340758
I am sorry but my question was not precise enough !
 The DLL has not only to run an EXE file but also to do some other work. So  I actually tried to use ExecuteFile, but it crashes the application !
0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1340759
you need to run it from code or from Delphi design mode?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:duduf
ID: 1340760
I guess the answer is 'from code' because actually it will be an already existing EXE file (written in a language I even do not know).
 
0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1340761
Did you try Winexec or CreateProcess?
0
 

Author Comment

by:duduf
ID: 1340762
I tried :
 WinExec          ; nothing happened.
 ExecuteFile      ; system crash.
 CreateProcess  ; troubles with user32.dll.
and finally ShellExecute which seems to work nicely (I have to use it a little bit more to be sure).

Thank you for your help.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question