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

how to run an extern module/program in delphi 4

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
SPF
Asked:
SPF
1 Solution
 
Mohammed NasmanSoftware DeveloperCommented:
Hello

add

uses
  ShellAPI;
0
 
SlavakCommented:
Define it yourself:

HINST = type LongWord;

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


0
 
SPFAuthor Commented:
thx, It works, I didn't noticed the libary ShellAPI in the last example.

That was not very smart of me :(
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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