[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

23803: RE: [MUD-Dev] Extensibility

[Full Header] [Plain Text]
From: "John Buehler" <johnbue@msn.com>
Newsgroups: nu.kanga.list.mud-dev
Date: Tue, 14 May 2002 11:44:37 -0700
References: [1]
Organization: Kanga.Nu
szii writes:
> From: "Sean Kelly" <sean@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@kanga.nu
https://www.kanga.nu/lists/listinfo/mud-dev