RAD Studio
ContentsIndex
PreviousUpNext
E2384: Cannot call near class member function with a pointer of type 'type' (C++)

Also E2385 Cannot call near class member function 'function' with a pointer of type 'type' 

Member functions of near classes can't be called via a member pointer. 

This also applies to calls using pointers to members. 

(Remember, classes are near by default in the tiny, small, and medium memory models.) 

Either change the pointer to be near, or declare the class as far.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!