
21 Oct
2009
21 Oct
'09
3:46 p.m.
Igor R wrote:
I guess he meant something like this:
// windows-specific: boost::shared_ptr
ptr(LoadLibrary("mylib.dll"), &FreeLibrary); // now you can bind "ptr" to the slots or anything that needs maylib.dll to be alive.
Oh -- so instead of using that shared_ptr for my real function, you're saying I could bind it as an ignored argument to a no-op function. That's true, and I thank you both for the suggested workaround. I remain hopeful that Frank might introduce a better solution before long. :-)