Delphi: ShellExecute problem


[ DelphiLand FAQ ] [ Delphi Tutorials ]

Posted by Jeroen Veurink on November 25, 2001 at 17:30:23:

hello,

I have a bit of a problem.
I want to make a program with one button (in delphi6.0)
If you press the button, it suppose to start a extern program like
c:\windows\notepad.exe.
To open the program (notepad) I used: ShellExecute Handle, 'open',
PChar('notepad'), nil, nil, SW_SHOW.
But when i compile the program, it says:
"[Error] Unit1.pas(28): Undeclared identifier: 'ShellExecute'"

Can anybody please help me ?

Thanks
Jeroen


Related Articles and Replies


[ DelphiLand FAQ ]