Hi Randy,
Yes, the DLL instantiates a class that wraps a Microsoft ActiveX control, mscomctl.ocx. I can control when that class is instantiated and I have tried creating it upon start up and creating it after a user event.
I have also built the DLL using dynamic linking to MFC an and static linking, the same error occurs in either case.
If I don't use the ActiveX control, I don't have to link to MFC, the ActiveX control needs a CWnd parent. I would have to redesign and rewrite the DLL but if that's the only to solve the problem...
Thanks for your help,
Doug Forsythe