Page 1 of 1

Callback Subroutines or Functions

Posted: Thu Oct 07, 2004 9:30 am
by Guest
I have recently noticed that QuickBasic does not give the programmer access to the address of user-defined subs or functions (I can find no equivalent to VARPTR / VARSEG).

Has anyone seen an example of a callback routine in QB? Perhaps in the form of an interrupt service routine, or a timer hook? If this doesn't exist, perhaps I'll fiddle around and try to get it going myself.

I'm not a guest.

Posted: Thu Oct 07, 2004 9:33 am
by Remmy
Sorry, my login session expired as I was composing the question.

Posted: Thu Oct 07, 2004 1:35 pm
by v3cz0r
Only using some hacking, in pure qb: http://www.geocities.com/av1ctor/files/PQBPPTR.ZIP or in asm: http://www.geocities.com/av1ctor/files/boostqb.zip

Examples inside.. You can create ISR's or whatever, but only if the module is compile, won't work inside the QB's IDE..

Thanks

Posted: Sat Oct 09, 2004 3:12 pm
by Remmy
Thanks v3cz0r! I was afraid it would require some trickery, and it makes sense that SUB and FUNCTION addresses are not available in "interpreted" mode (running without compiling).