Basically I want to be able to launch the other program using a button
or menut item.
Thanks.
Try this:
Procedure StartProgram(Pr:string);
var
Prog:array[0..255] of Char;
begin
StrPCopy(Prog,Pr);
WinExec(Prog,1);
end;
-Geir-
ro...@sn.no
aaa. array[0..120] of char;
wsts: word;
..............
if fileExists( myFile ) then
begin
str1 := 'myProg2.exe ' + myFile;
wsts := Winexec( strpCopy(aaa,str1), SW_SHOW );
if ( wsts < 32 ) then
MessageDlg('WinExec error '+ intToStr(wsts), mtInformation,
[mbRetry], 0 );
end;
Regards, Enzo
Enzo Arlati e.ar...@sinergy.it
Sinergy srl via Modigliani 45, Segrate
20090 (MI)
tel: +39 2 26921619 fax: +39 2 26922048
http://arlati.sinergy.it http://www.sinergy.it
Vincent Taijeron <red...@worldnet.att.net> wrote in article
<33abef26...@netnews.worldnet.att.net>...