delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/07/18:25:16

From: Damian Yerrick <MYNAMEISd_yerrick AT hotmail DOT comNO2CANNEDHAM>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to create overlays
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <8bcu9s4mkq1n4isb3isdss0mb09m959vja@4ax.com>
References: <87n9tr$5r5$1 AT ac1 DOT ewetel DOT de>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 26
X-Trace: /K+neRCgMIxoetCJ30PoBkbOxDds9HHU41uno6u2m8OupIHXfkwFaizUoBJsdzhlhy3xQsDeQ45Y!NZqMyqqurtX4E232pkd1RL9LHwIKYUOa4LVEOjUW2APKfBetO5xTCdJsXCKd5b9UFB0fP5kO0A==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Mon, 07 Feb 2000 21:00:03 GMT
Distribution: world
Date: Mon, 07 Feb 2000 21:00:03 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Mon, 7 Feb 2000 21:28:11 +0100, "Thorsten Erdmann"
<thorsten DOT erdmann AT gmx DOT de> wrote:

>Hi,
>
>I want to create a set of routines which should be loaded on demand from the
>main program. These routines are a hardwaredriver for several display types.
>I want to define some routines like putpixel, drawstring etc. These routines
>exist for every display type and should be in a file separated from the main
>program, so the user can exchange these driver files without recompiling the
>main program.
>
>How can I do this? I thought of creating a structure which hold pointers to
>every function. Then I load the driver into memory, initialize that
>structure and then call the routines over that structure. But how do I
>compile that driver module and how do I read where in that file is each
>funtion.

So you want dynamic linking.  Try DLX:
  http://nanosoft.hypermart.net/dlx.html

-- 
Damian Yerrick  http://yerricde.tripod.com/
Comment on story ideas: http://home1.gte.net/frodo/quickjot.html
AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/
View full sig: http://www.rose-hulman.edu/~yerricde/sig.html

- Raw text -


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