Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DLL in Delphi 3

Posted on 1998-09-24
6
Medium Priority
?
216 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 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

636 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