Mike Harnad
August 13th, 1999, 10:02 AM
I've designed a control that needs to load resources from either a resource-only DLL, or, an EXE. My dilemma is that after I call LoadLibrary to load resources (ie. a bitmap) from an EXE source, I can't build the EXE. I get link error LNK1168 (write access not allowed). My guess is that since the EXE is still in memory, I can't write to it. I've tried using FreeLibrary to release the EXE. However, there seems to be a bug (Q202197) in using FreeLibrary before the control is destructed.
Does anyone have a way of loading resources without locking an EXE into memory? Or, is there another way of freeing it once I've loaded what I need?
TIA,
Mike
Does anyone have a way of loading resources without locking an EXE into memory? Or, is there another way of freeing it once I've loaded what I need?
TIA,
Mike