Callback Subroutines or Functions

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!
Post Reply
Guest

Callback Subroutines or Functions

Post 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.
User avatar
Remmy
Newbie
Posts: 3
Joined: Thu Oct 07, 2004 8:07 am
Location: Canada
Contact:

I'm not a guest.

Post by Remmy »

Sorry, my login session expired as I was composing the question.
v3cz0r

Post 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..
User avatar
Remmy
Newbie
Posts: 3
Joined: Thu Oct 07, 2004 8:07 am
Location: Canada
Contact:

Thanks

Post 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).
Post Reply