Click to See Complete Forum and Search --> : Why need vc7.0 runtime dll?
flyashzhao
December 23rd, 2003, 08:42 AM
My project is very small, so I want to use the MFC in a static library. I change the project property, but this doesn't work, it still need to link the MFC70.dll and MSVCR70.dll.
Does anyone have idea about this problem? Thanks.
Andreas Masur
December 23rd, 2003, 10:48 AM
[Moved thread]
Andreas Masur
December 23rd, 2003, 10:50 AM
Well...you cannot link against a dll, but rather against its import library. However, I assume you mean that the dll is still required at run-time?
If so...which version of the package are you using? Standard? Professional? Does the application depend on external libraries etc. which might require these dll's?
MrViggy
December 23rd, 2003, 11:03 AM
MSVCxxx.dll and MSVCRxxx.dll are not MFC dlls, they are the C runtime library DLL's.
I don't recall if there is a way to statically link against the CRT. Even if you can, I believe that you'll still find other DLL's that link the CRT dynamically. You can try enabling the "Minimize CRT use in ATL" setting...
Viggy
JamesSchumacher
December 27th, 2003, 03:24 AM
Project->YourProject Properties->C++->Code Generation->Runtime Library
This is where you change the linking of the CRT. If you link against STATIC MFC, you SHOULD link against static CRT. If you link dynamically with MFC, you should link with dynamic CRT.
I just bought VC++.NET Standard 2003 yesterday, and already found this option.
Regards.
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.