Qbasicnews.com

Full Version: Calling functions via Address ??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to call any function written in QB via it's address? :???:
If Yes, then how?
How i get an address?
Thanks.
No, it's not possible in QB
You can do this kind of thing in assembler.
FB has pointers, maybe that might be a solution, plus you could upgrade from QB to FB.

But, tell us what you're trying to do, and maybe we can come up with an alternate way of doing it.
*****
I have a GUI.
It can have many forms.
And single Recursion procedure draws each form and all it's children.

I want to add a posibility of creating user defined controlls
But That procedure doesn't know which sub should it call to draw
a user defined control.

I thought it is possible to store an address of user procedure and call it when a control should be drawn.

If somebody knows how to do it on ASM it would be great
Ok I found the solution my self.
Actually calling functions via pointer has been realized before by v1ctor.
http://www.phatcode.net/downloads.php?id=178
Zero_divide, do you really need to use function pointers. IMHO, low level stuff in QB should be avoided. My experience tells me they tend to be very unstable.
No i need it wery much
I dont see any other ways to solve that problem.
Any way it will work like an extention of standert features and user will be able to aviod it.
Qb without lov level is just a toy