Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Aug : ShellExecute: any wrong with the code ?

www.cryer.info
Managed Newsgroup Archive

ShellExecute: any wrong with the code ?

Subject:ShellExecute: any wrong with the code ?
Posted by:"Man Utd" (alanpltsenospam@yahoo.com.au)
Date:Fri, 12 Aug 2005 11:34:45 +1000

procedure TForm1.btnStartClick(Sender: TObject);
var
  sConvertEXE: String;
begin
  sConvertEXE := SysUtils.ExtractFileDir(Application.ExeName) + 'WWW.exe';
  ShellExecute(Handle, 'open', PChar(sConvertEXE), '', '', sw_show)
end;

When I click the button, it does not fire the  executable.

Glossary

File Types

Replies:

www.cryer.info
Managed Newsgroup Archive