Mail Archives: djgpp/2000/06/20/14:04:51
> 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 -