> I'm not sure I understand, but let me answer as if I do. The shared_ptr bound into the boost::bind() object stored in the signal's slot is just an ordinary shared_ptr to a heap object. It doesn't know it comes from a DLL, nor am I especially keen to tell it.
 
 
I guess he meant something like this:
 
// windows-specific: 
boost::shared_ptr<HINSTANCE__> ptr(LoadLibrary("mylib.dll"), &FreeLibrary);
// now you can bind "ptr" to the slots or anything that needs maylib.dll to be alive.