• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

DLL in Delphi 3

How can I run an *.exe file from a DLL using Delphi 3 ?
0
duduf
Asked:
duduf
  • 3
  • 3
1 Solution
 
ronit051397Commented:
- Open the DLL dpr.
- In Delphi Menu enter Run\Parameters\
- In the Host Application write the full path of your exe.
0
 
dudufAuthor Commented:
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
 
ronit051397Commented:
you need to run it from code or from Delphi design mode?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
dudufAuthor Commented:
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
 
ronit051397Commented:
Did you try Winexec or CreateProcess?
0
 
dudufAuthor Commented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now