out parameters that return a value have are "type*".
out parameters that return a pointer are "type**".
it's not possible for C to set attrP to something when it is passed as a
parameter. a study of pointers and parameter passing will explain why not.
----- Original Message -----
From: Mike Davis <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 29, 1999 9:31 AM
Subject: Re: Field Attributes Question
> > "Mike Davis" <[EMAIL PROTECTED]> wrote:
> > > // fldP is declared as FieldPtr
> > > // attrP is declared as FieldAttrPtr
> > > // fldXReg is ID of field
> > > // form is obtained with GetActiveForm()
> > >
> > > case ctlSelectEvent:
> > > fldP = FrmGetObjectPtr(form, FrmGetObjectIndex(form, fldXReg));
> > > FldGetAttributes(fldP, attrP);
> >
> > Did you simply define attrP as FieldAttrPtr and do nothing else with it
> > before calling FldGetAttributes? If so, where does attrP point?
> >
> > You probably want something like:
> >
> > FieldAttrType attr;
> > ...
> > FldGetAttributes(fldP, &attr);
>
> I guess I misunderstood the FldGetAttributes function; the docs are
> not too clear. I thought the attrP (was an output parameter) would
> be used as the 2nd parameter and that attrP would be set with the
> value of the location of the attributes. I didn't realize that a
> FieldAttrType of attr was filled with the attributes.
>
> Thanks
> > Have you tried stepping through your code with POSE and GDB? If you do,
> > you will know exactly where your code is crashing.
> >
> > --
> > Roger Chaplin
> > <[EMAIL PROTECTED]>
> >
>
>
> --
> -----------------------------------------------------------------
> Discussion Group: http://www.halcyon.com/ipscone/wwwboard/
>
> Protect your constitutional rights. Your favorite one may be next!
> -----------------------------------------------------------------
>