From: | Allan Odgaard |
Date: | 07 Apr 00 at 14:18:35 |
Subject: | Re: Passing arguments to a new process |
On Fri, 7 Apr 2000 andrewmarkwell@ukonline.co.uk wrote:
> [...] How would I give a value to 'x' using CreateNewProc() or
> CreateProc()?
What I do is I sprintf() my arguments to a buffer (using %p for pointers
etc.) and provide the buffer with the arguments tag -- then I declare my
subprocess like this:
You can then use sscanf() on the 'args' buffer, or even ReadArgs(), but
the former makes the most sense, as you can re-use the format template
from sprintf ;-)
Regards Allan
------------------------------------------------------------------------
Get a NextCard Visa, in 30 seconds!
1. Fill in the brief application
2. Receive approval decision within 30 seconds
3. Get rates as low as 2.9% Intro or 9.9% Fixed APR
Apply NOW!
http://click.egroups.com/1/2646/1/_/451227/_/955113609/
------------------------------------------------------------------------