January 30th, 2004, 05:53 PM
Linking ActiveX with static MFC library
I can link an ActiveX control (OCX) with MFC just find when the project
specifies "Use MFC in a Shared DLL". Unfortunately, when I try to link with
"Use MFC in a Static Library", I get...
GTViewer.def : error LNK2001: unresolved external symbol DllCanUnloadNow
GTViewer.def : error LNK2001: unresolved external symbol DllGetClassObject
Debug/GTViewer.lib : fatal error LNK1120: 2 unresolved externals
LINK : fatal error LNK1141: failure during build of exports file
I want to prevent the need to redistribute the MFC library prior to running
our ActiveX control. How can I accomplish this by addressing the link error
or by other means?
Rap music sucks!
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.