My VC++ MFC solution includes four project.
I need to host this application without CLR support in windows XP. so I use configuration Use of MFC as Use MFC in a Static Library in all four project.
So my question is what should be the C++-> Code Genaration Configuration for each project.
Use /MD for all your projects. As is stated in the referenced questions: it is important to be consistent. So: even build your Static Lib using /MD, since it will be used in an /MD executable. When you do this, the linker doesn't try to link two different versions of the Microsoft library (static and dynamic) which resolves the error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With