Question For Nietod - Generating code to include necessary dlls

When distributing a VC application, how can I be sure the necessary dlls accompany the main program?


nietod:
If the program consists only of the EXE and no DLLs (Other than the VC DLLs or the OS DLLs.  i.e. no DLLs you wrote for the EXE) then you can compile the EXE to use the statically linked RTL, then the EXE won't need any DLLs except for the OS Dlls (which all computers will have).

To do this, go to the:
"Project" menu  and then the
"Settings" menu item

In the dialog that appears, choose the "C/C++" tab.  Under the 'Category' field, choose 'Code Generation'  In the 'Use run-time library'" field, choose one of the non DLL versions.

If you are looking at the settings for the release version, choose single-threaded unless you use multiple threads, in which case choose multi-threaded.  If this is a debug version, choose debug single-threaded or debug-multithreaded.  Don't chose an option that lists DLL.

If your program does use DLLs that you've written, then you will need to
continue using the DLL version of the RTL.  In that case you can use the
DEPENDS.EXE utility that comes with VC.   It will list all the DLLs that
your EXE uses (as well as DLLs that those DLLs use and so on.)  These
are the DLLs you will need to ship with your EXE.  Now some of those DLLs will appear in the \windows or windows\system directory.  Those
are on all windows computers and you should not ship those.


John500
The points are for other recent questions also, thanks.

John500Asked:
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.

nietodCommented:
Thanks.
0

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
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
C++

From novice to tech pro — start learning today.