Qbasicnews.com
December 13, 2019, 01:43:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: CALL smth  (Read 1227 times)
VonGodric
Ancient Guru
****
Posts: 674



WWW
« on: October 27, 2004, 08:12:31 PM »

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?
Logged

url]http://fbide.sourceforge.net/[/url]
VonGodric
Ancient Guru
****
Posts: 674



WWW
« Reply #1 on: October 28, 2004, 06:48:56 AM »

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?
Logged

url]http://fbide.sourceforge.net/[/url]
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!