ShellExecute?


DelphiLand FAQ    DelphiLand Home


Posted by Leox on June 14, 2000 at 22:35:05:

What am I doing wrong when I'm using the ShellExecute command? Is it just like this

procedure TForm1.Button1Click(Sender: TObject);
begin
ShellExecute(Handle, 'open', PChar('c:\test\readme.txt'), nil, nil, SW_SHOW);
end;

But when I'm doing this it says
[Error] Unit1.pas(28): Undeclared identifier: 'ShellExecute'

What do I have to do to make it work? Thanks in Advance.
//Johan


Related Articles and Replies: