delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/07/07/18:58:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Wed, 7 Jul 1999 18:46:24 -0400 (EDT)
Message-Id: <199907072246.SAA07598@indy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: rbresner AT olf DOT com
CC: cygwin AT sourceware DOT cygnus DOT com
In-reply-to: <3783C923.C7742C50@olf.com> (rbresner@olf.com)
Subject: Re: How can I get a .dll to resolve at runtime ?

> Is there a way, on NT, to get a .dll to resolve externals at
> runtime, like *nix, instead of at link time?

I don't think so.  What you'd normally do is have the exe call the dll
at startup and pass it pointers to its functions, which the dll would
store in per-process memory (remember that dlls are shared among many
executables).

One thing to try is to export the function with a .DEF file, and see
if that works.  You'd have to build an import library for your
executable and link the dll against that, but I'm not sure if NT would
even *allow* such a hack.

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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