December 21st, 2004, 02:47 PM
|
#1 (permalink)
|
| Member
Join Date: Aug 2003 Location: Germany
Posts: 98
|
I'd like to do the following thing with delphi:
I have the full command: PHP Code: ShellExecute(Handle, 'open', PChar('c:\Windows\notepad.exe'), nil, nil, SW_SHOW);
As i'd like to start more than only one program, i want to put PHP Code: procedure run (PChar s);
begin
ShellExecute(Handle, 'open', PChar(s), nil, nil, SW_SHOW);
end;
as a procedure which i can call as: run(c:\windows\notepad); Of course at the moment this does not work... I know this should work with java like that - but i need it to be startable from delphi... How?
This must be very easy as i'm a total newbie to delphi syntax 
__________________
Do you also hear those voices?
Last edited by c6ke : December 21st, 2004 at 03:03 PM.
|
| |