home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: 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
-
- 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." (*)/'(*)
-