Hello, I have a C++ Builder 6 program written by others. When the program is executed, there is a main form. Depending on the buttons being pushed, different forms appear on the screen to prompt the users for appropriate actions. In Main.h, there is a class definition as follows:
class TFormMain : public TForm
{
_published:
:
: (lots of stuffs here)
:
private:
CHouse *ABCPtr;
:
}
When I looked at the codes of other forms (written in separate files), I found that some of the functions mention ABCPtr without using class resolution symbol ::. I also cannot find the pointer ABCPtr being defined elsewhere.
Is ABCPtr a global variable? If not, how come member functions of other classes can use it? thanks.
class TFormMain : public TForm
{
_published:
:
: (lots of stuffs here)
:
private:
CHouse *ABCPtr;
:
}
When I looked at the codes of other forms (written in separate files), I found that some of the functions mention ABCPtr without using class resolution symbol ::. I also cannot find the pointer ABCPtr being defined elsewhere.
Is ABCPtr a global variable? If not, how come member functions of other classes can use it? thanks.