Re: Starting another program
- From: alanglloyd@xxxxxxx
- Date: 2 May 2005 22:18:37 -0700
UN wrote:
> We start a new program with
> prg := PgmName+chr(0);
> WinExec(@prg[1],SW_SHOWDEFAULT);
Delphi does that sort of thing for you. There is always a Chr(0) at the
end of every Ansi (long) string, and a PChar typecast returns the
address of the first character.
WinExec(PChar(PgmName), SW_DEFAULT);
Alan Lloyd
.
- References:
- Starting another program
- From: UN
- Starting another program
- Prev by Date: Re: Starting another program
- Next by Date: Re: microphone
- Previous by thread: Re: Starting another program
- Next by thread: Re: Starting another program
- Index(es):
Relevant Pages
|