www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/19/11:44:30

Date: Thu, 19 May 94 10:08:34 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: FAQ AT olympus DOT eecs DOT nwu DOT edu, I AT olympus DOT eecs DOT nwu DOT edu, I'm AT olympus DOT eecs DOT nwu DOT edu,
but AT olympus DOT eecs DOT nwu DOT edu, can't AT olympus DOT eecs DOT nwu DOT edu,
djgpp AT sun DOT soe DOT clarkson DOT edu, find AT olympus DOT eecs DOT nwu DOT edu,
if AT olympus DOT eecs DOT nwu DOT edu, in AT olympus DOT eecs DOT nwu DOT edu,
is AT olympus DOT eecs DOT nwu DOT edu, it DOT AT olympus DOT eecs DOT nwu DOT edu,
sorry AT olympus DOT eecs DOT nwu DOT edu, the AT olympus DOT eecs DOT nwu DOT edu,
this AT olympus DOT eecs DOT nwu 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