acDbEntity like a parameter of function - problem

acDbEntity like a parameter of function - problem

majklha
Advocate Advocate
257 Views
0 Replies
Message 1 of 1

acDbEntity like a parameter of function - problem

majklha
Advocate
Advocate
I tried send pointer to AcDbEntity object to my function, and AutoCad has still error - viz attached file.

this is the code:
void Pokus(AcDbEntity *textEnt)
{
}
AcDbEntity *textEnt;
Pokus(textEnt);

when I had changed type of calling parameter by reference (&), the probelm was resolved.. the new code:
void Pokus(AcDbEntity *&textEnt)
{
}
AcDbEntity *textEnt;
Pokus(textEnt);

Do somebody know, why have I to call pointer to AacDbEntity by reference ?
0 Likes
258 Views
0 Replies
Replies (0)