That sounds interesting. I've had so many bugs where I've loaded a DLL that
me gun-shy.
"Tom Serface" <tom.nospam@camaswood.com> wrote in message
news:CBD4D0D4-D40E-4F75-A331-E007D95936EF@microsoft.com...
I think you would be safe enough loading a resource DLL, but you should
not call AfxSetResourceHandle() in a DLL because that will screw up the
application that uses the DLL.
My method of having a resource loader object, which calls
AfxSetResourceHandle() in its constructor and then calls it again to set
the old resource handle in its destructor, works fine from a DLL.
Typically the resource loader object does one modal dialogue, or loads a
string or two and then goes out of scope, leaving the current resource
handle the way it found it.
Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm