www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/19/12:45:18

Date: Thu, 19 May 94 10:58:39 CDT
From: salbrech AT olympus DOT eecs DOT nwu DOT edu (Steve Albrecht)
To: mag1007 AT hermes DOT cam DOT ac DOT uk
Subject: Re: DJGPP and 16-bit libs
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>        I'm sorry if this is in the FAQ, but I can't find it.
>         Is it possible to link in, or otherwise use, a 16-bit library? i.e. 
> I have a normal dos lib, (Compiled with Borland C) and want to use it with 
> my 32-bit programs (It uses iterrupts et al.)
 
I don't know much about DLLs, but it seems to me that you might be able
to create a Windows application that uses both your DOS lib and a DLL
containing the 32-bit program.  You may be better off using Borland C++,
Visual C++ 32, or Symantec v7 to produce the 32-bit DLL(heresy, I know ;^)).
 
If you need to produce a DOS program, I can only think that you might make
a TSR out of the DOS lib... and access it through real-mode callbacks.  A
dirtier method is to link your lib with GO32 to make a special-purpose
DOS extender which includes callbacks to access the DOS library functions.
I suspect that passing significant amounts of data under either of these
approaches would be ugly.
 
Hopefully, someone who understands more about these issues can refine or
elliminate these half-baked ideas.
 
Regards,
salbrech AT eecs DOT nwu DOT edu (Steve Albrecht)
 

- Raw text -


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