• Advertisement
Sign in to follow this  

MFC trouble linking static vd dynamic

This topic is 3640 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I got a problem with my OCX project. (MFC ActiveX control project type) When I set the Project option "Configuration Properties->General->Use of MFC" to "Use MFC in a Shared DLL" and together with that set the option "Configuration Properties->C/C++->Code Generation" to "Multi-threaded Debug DLL (/MDd)" the code compiles perfect and runs without any trouble. When I set the option "Configuration Properties->General->Use of MFC" to "Use MFC in a Static Library" and together with that set the option "Configuration Properties->C/C++->Code Generation" to "Multi-threaded Debug (/MTd)" the code compiles, like with the dynamic version, but once I execute it I get a truck load of assertions errors. For some reason the pointer to the main frame is NULL. and I have no clue as to why. The project is in VC++ 2005 (converted from VC++ 6.0) and can be downloaded from www.powerprint.nl. Does anyone know why I get the errors and better yet how I can resolve them. It is driving me nuts.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement