[MUD-Dev] Extensibility

John Buehler johnbue at msn.com
Tue May 14 11:44:37 New Zealand Standard Time 2002


szii writes:
> From: "Sean Kelly" <sean at ffwd.cx>

>> No need for a recompile or even a restart if you design it
>> correctly.  This is the reason for interfaces.  This is one of
>> the few features I wish C++ had, though you can get fairly close
>> with DLLs.

> "Close" is correct.  Microsoft's DllUnload() call will flag the
> DLL, but it's still "in use" by the system for ~10minutes.
> There's no way to force it, override it, or get around it.  They
> won't even make exceptions for people who pay a lot of money to be
> their friends.  This is accurate as of NT4 sp6a and Win2k.  I've
> no idea about XP.

Try LoadLibrary and FreeLibrary.  I believe they'll give you the
behavior that you're after.

>From the Platform SDK documentation: "The FreeLibrary function
decrements the reference count of the loaded dynamic-link library
(DLL) module. When the reference count reaches zero, the module is
unmapped from the address space of the calling process and the
handle is no longer valid."

JB

_______________________________________________
MUD-Dev mailing list
MUD-Dev at kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev



More information about the MUD-Dev mailing list