Reputation: 11399
Currently my DLL requires that mfc80u.dll and msvcr80.dll reside in the same directory when I want to use it from a different application.
I think there is a switch in VS2013 that somehow compiles the DLL in such a way that these files are no longer required.
I am pretty sure I have once read about it.
This makes the DLL much bigger, that to me that's worth it.
Does anybody know which switch that is?
Thank you!
Upvotes: 0
Views: 120
Reputation: 18411
To remove VC runtime DLLs (not specific to MFC), use the /MT
compiler switch.
If you are using MFC, you must also use Use MFC in Static Library
in General page of project settings.
Upvotes: 2