This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: How can I get a .dll to resolve at runtime ?
- To: rbresner@olf.com
- Subject: Re: How can I get a .dll to resolve at runtime ?
- From: DJ Delorie <dj@delorie.com>
- Date: Wed, 7 Jul 1999 18:46:24 -0400 (EDT)
- CC: cygwin@sourceware.cygnus.com
> 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@sourceware.cygnus.com