JD>How do you stop, unload, or whatever the term, a dll.
JD>When I rerun a program without rebooting the computer it says:
JD>"Cannot create process : an instance of the module is already
running"
There shouldn't be a problem with when two or more apps use the same DLL
since it's suppose to be shared code. All windows application use the
GDI.EXE and other DLLs all the time.
To load a DLL that's not linked into an exe or another dll ie. including
a lib file created from a dll (the lib file replaces the imports section
of the def file and also loads the dll automatically). If a dll is not
included as a lib, then you can load it
HINSTANCE hInst = LoadLibrary(LPSTR Path);
then free it as
FreeLibrary(HINSTANCE hInst);
* SLMR 2.1a * Back Up My Hard Drive? I Can't Find The Reverse Switch!
--- FMail 0.92
---------------
* Origin: The Programmer's Oasis on FIDONET! (1:348/203)
|