3 ms·
So, why would you want to use the CRT as a DLL? The article doesn't make that clear.
by cousin_it 17y ago
So, why would you want to use the CRT as a DLL? The article doesn't make that clear.
- Kliment 17y agoOne reason would be to reduce executable size on systems where you are sure the correct DLL exists. This made a lot of sense when executable sizes were critical. Install the CRT once, and any app can use it. The MS approved solution as I understand it is to bundle the CRT installer in your own installer. This of course makes no sense if you have no installer. So it's a better idea to statically link the CRT and not worry about what your users have.
- zmmmmm 17y agoIt enables someone else (a system administrator, microsoft patch, etc.) to redirect it to a new version without your intervention if a security issue is identified in the version you have shipped with your application. It's actually a very sophisticated system that allows any number of versions of the same dll to be used simultaneously within the system. It is also a nightmare for unsuspecting developers when it goes wrong.
- cousin_it 17y agoI've never seen a sysadmin do that, they just nuke the offending app. So I'm filing it as "science fiction". Don't worry, use /MT.