Super easy question!!!

Just wondering do visual C++ programs have to carry around those huge runtime files like VB????

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Non-MFC: No.

MFC: 1. Static linking - No.
     2. Dynamic linking - MFCxx.DLL (around 950KB) and MSVCRT.DLL (around 250KB).

For more information, see

Redistributing Microsoft Visual C++ 6.0 Applications

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
So for an extra 30 points what in very basic laymens terms is the difference between static and dynamic linking?


linking statically means that the object code required from libraries (such as the windows libraries) gets copied into the excutable file when the application is linked - so the library code increases the size of the executable file.

linking dynamically means that the object code required for libraries stays in library files (DLLs are dynamic link libraries) and is loaded by the operating system as required at run time.

There are advantages and disadvantages to both approaches.
I'm not sure that I agree with chensu.  It may depend on what exactly you call large, but when VC program is dynamically linked to the runtime library (RTL), it requires the MSVCP60.DLL  (401,462 bytes) and the MSVCRT.DLL  (254,005 bytes) or more than 600K of DLL space.  Now if you statically link to the RTL, it will not take up as much space, because there are likely to be portions of the RTL that you are not using and that cn be stripped from the final executable.
>It may depend on what exactly you call large

Yes, stephenblade is comparing with VB run-time library. VB code should be larger than equivalent C++ code.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.