I have a C ++ SWIG function that expects a function pointer (WNDPROC) and wants to give it a Python function that was wrapped by ctypes.WINFUNCTYPE.
It seems to me that this should be compatible, but checking for the SWIG type throws an exception, because it does not know that the ctypes.WINFUNCTYPE type is actually WNDPROC.
What can I do to pass my SWIG callback so that it understands it?
source
share