Sign in to follow this  
Maurice

MFC trouble linking static vd dynamic

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this