Solved

how to run an extern module/program in delphi 4

Posted on 2002-06-06
3
143 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:
mnasman 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now