From: "Thorsten Erdmann" Newsgroups: comp.os.msdos.djgpp Subject: How to create overlays Date: Mon, 7 Feb 2000 21:28:11 +0100 Organization: EWE TEL Lines: 20 Message-ID: <87n9tr$5r5$1@ac1.ewetel.de> NNTP-Posting-Host: dialin-82075.ewetel.net X-Trace: ac1.ewetel.de 949955323 5989 212.6.82.75 (7 Feb 2000 20:28:43 GMT) X-Complaints-To: abuse AT ewetel DOT net NNTP-Posting-Date: 7 Feb 2000 20:28:43 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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. Thanks for help Thorsten