Guys,
one more tidbit. I tried this and it ran the first time through. The second
time the DLL was able to reload, but it still didn't put up my UI. Next, I'm
going to try Greg's Separate Thread approach.
-Chris
FLTKInstance = GetModuleHandle("fltkdll.dll"); //access count is N
(assumed > 0)
while (FLTKInstance)
{
BOOL fi = FreeLibrary(FLTKInstance);
if (fi) FLTKInstance = GetModuleHandle("fltkdll.dll");
else FLTKInstance = NULL;
}
//completely unloaded now.
FLTKInstance = LoadLibrary("fltkdll.dll"); //
//we get to here, and the DLL is loaded, but it doesn't matter. No UI
will come up the second time
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk