Thats what I’ve had to do for now, its the only.
I beg to differ, what you have to do is create a reference to the class in the class method which is the callback and then refer to it by its new name, and not self.method or self.property.
Note I’ve changed lpParam from a long to the ClassName in the prototype to give me access to everything in the class.
ClassName.EnumResTypeCallBack Procedure(long lp01, long lp02, long lp03, ClassName lpParam, long pType, long phModule)
MyCallbackClassName &ClassName
code
MyCallbackClassName.Property
MyCallbackClassName.Method
I had even tried using Bind in the hope it would work like the C++ Bind function, but the Clarion Bind doesnt handle classes., so for now I’m exploiting the compiler.