[18849] in s-news-athena

home help back first fref pref prev next nref lref last post

[S] SSDK 20 : S_apiObject restore from string

daemon@ATHENA.MIT.EDU (Lionel Siau)
Wed Aug 4 09:55:08 1999

Message-Id: <37A845A2.A01B8ABF@doc.ic.ac.uk>
Date: Wed, 04 Aug 1999 14:52:35 +0100
From: Lionel Siau <cyls98@doc.ic.ac.uk>
Mime-Version: 1.0
To: S-news@wubios.wustl.edu, cyls98@btinternet.com
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi,

I'm doing some C programming from the SSDK API. I have a model generated
from a previous session. In the current session, I want to use the
previous model with a new dataset. Is the following is legal? I'm
getting a bunch of errors thrown everywhere and can't pin it down.

/* Assumes that I already a string representation of a previous
calculation in "model_object" and
a new data frame in "dataobj"*/

S_apiObject **predictobj;
predictobj = S_apiObjRestoreFromString(model_object, &temp);
strcpy(basic_formula, strcat("prediction(", strcpy(predictobj, ",
dataobj)"));  /*note that basic_formula gets updated*/

do_instruction(...,basic_forumula,....); /*evaluates the statement with
the server*/


I suspect that I may have to "redirect" something like
(temp<-predictobj) in a earlier statement b4 I can use prediction.
However, there is no reason from the docs why I can't do the above.


Lionel




-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

home help back first fref pref prev next nref lref last post