What I want is to call a C++ function in a dll passing a PowerBuilder function as a callback parameter, so that I can call this PowerBuilder function from C++ when an event occurs. I know this can't happen directly but maybe there is a simple indirect way to do it.
For example one way could be to send a Windows message to the PowerBuilder application. Do you have any ideas or have implemented something like this?