[lazarus] platform independent application launching

2006-01-27 Thread A.J. Venter
Hi all,
I have an interesting dillema, I need to write a platform independant program 
which needs to be able to launch other programs. It must NOT wait for them to 
exit  but merely launch them, specifically we`re talking about launching 
things like a web-browser or pdf viewer.

The choice of the actual commands I will handle, the bigger problem is how to 
do it. Obviously the  method only works on unixes (I definitely need win32 
support) and as far as I know, tprocess cannnot LAUNCH a program and then 
forget about it and pass control back to my own app.

If there is no single way to do it, I am happy to use IFDEFS, but of course I 
still need to know what I can do on windows.

Any ideas ?
-- 
80% Of a hardware engineer's job is application of the uncertainty principle.
80% of a software engineer's job is pretending this isn't so.
A.J. Venter
Chief Software Architect
OpenLab International
http://www.getopenlab.com   | +27 82 726 5103 (South Africa)
http://www.silentcoder.co.za| +55 118 162 2079 (Brazil)

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] platform independent application launching

2006-01-27 Thread Michael Van Canneyt



On Fri, 27 Jan 2006, A.J. Venter wrote:


Hi all,
I have an interesting dillema, I need to write a platform independant program
which needs to be able to launch other programs. It must NOT wait for them to
exit  but merely launch them, specifically we`re talking about launching
things like a web-browser or pdf viewer.

The choice of the actual commands I will handle, the bigger problem is how to
do it. Obviously the  method only works on unixes (I definitely need win32
support) and as far as I know, tprocess cannnot LAUNCH a program and then
forget about it and pass control back to my own app.


Of course it can. I do it all the time...

Just don't use the poWaitOnExit flag or use the 'WaitOnExit' method.

Michael.

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives