Message 1 of 1
acDbEntity like a parameter of function - problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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 ?
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 ?