Subject | Re: [IBO] OnGetCellProps |
---|---|
Author | Mack |
Post date | 2005-08-03T19:13:13Z |
Thanks all for ur help
jon
--- In IBObjects@yahoogroups.com, "Daniel R. Jimenez"
<d.jimenez@c...> wrote:
jon
--- In IBObjects@yahoogroups.com, "Daniel R. Jimenez"
<d.jimenez@c...> wrote:
> > >This is the use of the procedure in Delphi...there apparentlyis no
> > >C++ equivalent to Assigned. Translating everything else in C++but
> > >that leads to an AV...what next?referenced by P
> >
> > In Pascal, Assigned() is a Boolean function that you can apply to
> > anything,
> > to determine whether that "thing" has an address in memory.
> >
> > From the VCL help:
> > Use Assigned to determine whether the pointer or procedure
> > is nil. P must be a variable reference of a pointer orprocedural type.
> > Assigned(P) corresponds to the test P<> nil for a pointervariable, and @P
> > <> nil for a procedural variable.question.
> >
> > Assigned returns False if P is nil, True otherwise.
> >
> > Maybe you're bumping into a pointer problem in C++?
> >
> > Helen
> >
>
>
> Sorry to barge in, but I only just read the end trail of this
>in Delphi
> If the question is regarding what is the equivalent of Assigned()
> to C++, then the solutions is:
>
> if( pointer )
>
> you could also use:
>
> if( NULL != pointer )
>
> on the other hand if the pointer is an auto_ptr then use:
>
> if( pointer.get() )
>
> hope this helps somehow.
>
> daniel