|
|
|
|
- Reason
- Correction
- Example
- Code triggering the error
Error 1054: 'Ancestor' cannot be used outside the code of a class
You are trying to access a member or a method of the base class of a derived class by using the 'Ancestor' keyword. This keyword can only be used in the code of a derived class. To explicitly use a method or a member of the base class from a code external to the class, specify the name of the ancestor class to use. Code triggering the error // -- Button click code Ancestor::pLast
Possible correction Specify the name of the class.
// -- Button click code Drawing::pLast
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|