From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: rbresner@olf.com Cc: cygwin@sourceware.cygnus.com Subject: Re: How can I get a .dll to resolve at runtime ? Date: Wed, 07 Jul 1999 15:49:00 -0000 Message-id: <199907072246.SAA07598@indy.delorie.com> References: <3783C923.C7742C50@olf.com> X-SW-Source: 1999-07/msg00147.html > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: rbresner@olf.com Cc: cygwin@sourceware.cygnus.com Subject: Re: How can I get a .dll to resolve at runtime ? Date: Sat, 31 Jul 1999 18:34:00 -0000 Message-ID: <199907072246.SAA07598@indy.delorie.com> References: <3783C923.C7742C50@olf.com> X-SW-Source: 1999-07n/msg00147.html Message-ID: <19990731183400.DLIS4CubOlze41_yGEywAA4BuYzacVvFQ_jvRu6YDfk@z> > 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