www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/20/14:04:51

Message-Id: <200006201804.VAA02254@mailgw1.netvision.net.il>
Date: Tue, 20 Jun 2000 21:05:58 +0200
X-Mailer: Emacs 20.6 (via feedmail 8.1.emacs20_6 I) and Blat ver 1.8.5b
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
To: djgpp AT delorie DOT com
In-reply-to: <394EB136.E5476269@gtcom.net> (message from Krogg on Mon, 19 Jun
2000 19:48:07 -0400)
Subject: Re: Plug-ins......?
References: <394EB136 DOT E5476269 AT gtcom DOT net>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: Krogg <krogg DOT no DOT to DOT spam AT gtcom DOT net>
> Newsgroups: comp.os.msdos.djgpp
> Date: Mon, 19 Jun 2000 19:48:07 -0400
> 
> lets say i have a program that draws random circles on the screen,
> or random rectangles.The user can select from a list what
> kind of thing to draw,circles or rectangles.But i want to
> add new things in the future,like say triangles or heart
> shapes,but i dont want to make the users download the WHOLE 
> darn package,just a plug-in for the new shapes....Is this 
> possible?Can i do something like this with DXE?...

Yes, you can in principle use DXE for this.  However, DXE is
intentionally limited, so if you want to write loadable modules with
it, you will need to employ some tricks; see section 22.15 of the FAQ
for more details.

Alternatively, you could use the DLX package which is more versatile.

> Is there a way to compile a little bit of code for a
> drawing function and load it in memory and call it
> from my program in a way that it could access global
> varibles or other functions from my main program...

It's possible, but you will have to reinvent what DXE and DLX already
do for you: how to resolve addresses in loadable modules.  Given an
address, you just need an lcall instruction to call the code; figuring
out the address is the hard part.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019