Is there a mechanism in PB DLL to pass a function's address
as a parameter to another function. The following code
shows the idea of what I'd like to do. It can be accomplished
other ways, but just thought I'd ask for future reference.
-------------------------------------------------------------
as a parameter to another function. The following code
shows the idea of what I'd like to do. It can be accomplished
other ways, but just thought I'd ask for future reference.
-------------------------------------------------------------
Code:
#COMPILE EXE #REGISTER NONE $INCLUDE "WIN32API.INC" FUNCTION F1() AS LONG MSGBOX "F1" END FUNCTION FUNCTION F2() AS LONG MSGBOX "F2" END FUNCTION FUNCTION FF(BYVAL PName AS FUNCTION PTR) CALL @PName() END FUNCTION FUNCTION PBMAIN() AS LONG CALL FF(F1) CALL FF(F2) END FUNCTION
Comment