Posted on 2003-11-06
When I work on ObjectArx which is a library by AutoDesk to program with AutoCad, I met a defination like this:
Acad::ErrorStatus getName(const char*& pName) const;
I don't understand what char*& mean. I did the following:
char* rname = name;
acutPrintf("\nThe block name is : %s", rname);
acutPrintf is similar to printf. It works.
But if I write
acutPrintf("\nThe block name is : %s", name);
It gives me junk chars.
If I write
The compiler gives me an error saying it can not convert char to char*&.
What is the mystic *& mean?
Thanks for your help.