Calling a C++ function pointer on a specific object instance

前端 未结 10 1881
傲寒
傲寒 2020-12-06 01:25

I have a function pointer defined by:

typedef void (*EventFunction)(int nEvent);

Is there a way to handle that function with a specific ins

10条回答
  •  独厮守ぢ
    2020-12-06 02:11

    It's somewhat unclear what you're trying to accomplish here. what is clear is that function pointers is not the way.

    maybe what you're looking for is pointer to method.

提交回复
热议问题