I am porting an old fashioned question and answer program to Windows. The original would display a text menu (via a main program) and for each menu option a subroutine is called. Relevant parameters are transferred as subroutine arguments.
When I am using a clearwin menu, the subroutines associated with the previous text menu options are replaced by callback functions . However callback functions do not allow for passing arguments.
A way around is to use (labelled) common blocks. This, however, requires substantial reprogramming.
Is there another method to pass arguments into a callback function (or subroutines called by the callback function)?