Solved

how to run an extern module/program in delphi 4

Posted on 2002-06-06
3
145 Views
Last Modified: 2010-04-04
In runtime I wanted to start a program like iexplore.exe using Shellexecute, but Delphi 4 doesn't recognise Shellexecute.

Does someone know the command for starting a program in Delphi 4?
0
Comment
Question by:SPF
3 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 50 total points
ID: 7058786
Hello

add

uses
  ShellAPI;
0
 
LVL 3

Expert Comment

by:Slavak
ID: 7058787
Define it yourself:

HINST = type LongWord;

function ShellExecute(hWnd: HWND; Operation, FileName, Parameters, Directory: PChar; ShowCmd: Integer): HINST; stdcall; external 'shell32.dll'


0
 

Author Comment

by:SPF
ID: 7058820
thx, It works, I didn't noticed the libary ShellAPI in the last example.

That was not very smart of me :(
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

786 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