Subject RE: [IBO] OnGetCellProps
Author Daniel R. Jimenez
> >This is the use of the procedure in Delphi...there apparently is no
> >C++ equivalent to Assigned. Translating everything else in C++ but
> >that leads to an AV...what next?
> 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 referenced by P
> is nil. P must be a variable reference of a pointer or procedural type.
> Assigned(P) corresponds to the test P<> nil for a pointer variable, and @P
> <> nil for a procedural variable.
> 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 question.

If the question is regarding what is the equivalent of Assigned() in Delphi
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.