Нельзя метод класса передать в качестве callback.
Код:
...
// [dcc32 Error] cino1.pas(159): E2009 Incompatible types: 'regular procedure and method pointer'
...
Цитата:
|
callback функция - это "обычная" процедура, ее невозможно представить как метод класса. Нужно писать по крайней мере переходник, который уже будет вызывать нужный метод.
|
Цитата:
|
A method pointer is really a pair of pointers; the first stores the address of a method, and the second stores a reference to the object the method belongs to.
|
|