Article View: comp.os.ms-windows.programmer.misc
Article #2020Re: Force DLL to unload
From: Ed McCreary
Date: Fri, 18 Dec 1992 14:40
Date: Fri, 18 Dec 1992 14:40
19 lines
1267 bytes
1267 bytes
In article <DEREKL.92Dec18100741@watson.harlqn.co.uk> derekl@harlqn.co.uk (Derek Law) writes:
>Does anybody know how to FORCE Windows 3.1 to unload a DLL? I'm
>developing a DLL, but every time I change it I have to quit and
>restart Windows - otherwise Windows complains that the file is "still
>in use" and so write protected.
>
How are you loading it? Try this...
HINSTANCE hLib;
hLib = LoadLibrary("MY.DLL");
....program code....
FreeLibrary(hLib);
--
Ed McCreary ,__o
mccreary@sword.eng.hou.compaq.com _-\_<,
"If it were not for laughter, there would be no Tao." (*)/'(*)
Technical Details
Message-ID:
<1992Dec18.144024.14800@twisto.eng.hou.compaq.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sun-barr!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mccrearyReferences:
<DEREKL.92Dec18100741@watson.harlqn.co.uk>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!sun-barr!cs.utexas.edu!wotan.compaq.com!twisto.eng.hou.compaq.com!sword.eng.hou.compaq.com!mccreary From: mccreary@sword.eng.hou.compaq.com (Ed McCreary) Subject: Re: Force DLL to unload Message-ID: <1992Dec18.144024.14800@twisto.eng.hou.compaq.com> Sender: news@twisto.eng.hou.compaq.com (Netnews Account) Organization: Compaq Computer Corp. References: <DEREKL.92Dec18100741@watson.harlqn.co.uk> Distribution: comp Date: Fri, 18 Dec 1992 14:40:24 GMT Lines: 19