Solved

DLL in Delphi 3

Posted on 1998-09-24
6
209 Views
Last Modified: 2010-04-06
How can I run an *.exe file from a DLL using Delphi 3 ?
0
Comment
Question by:duduf
  • 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to debug For loops? 3 57
RESTRequest Parameter 4 43
How to save the image in the .cds File ClientDataSet? 1 22
shape, triangle, dbctrlgrid 3 17
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

830 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