Qbasicnews.com

Full Version: CALL smth
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay I have a problem/question.
I'm coding a bytecode engine in qb. And I was thinking that is there a way to call functions/subs from libraries any other way then the: call function/sub name.
Why I need this is: In bytecode I'd like to be able to call any function/sub directly without having to interpret it like. if Byte=100 then call dosmth. It be really easy to add api for the bytecode engine, not to mention fast too.
Or is it even possible?
I was thinking about it and I think the solition is smth like, to find offset and segment of the function/sub (is it possible to get from compiled exe file or so?) and then generate pointer from it and using V1ctor's BoostQB library to do the job.

Could that work?