[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

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.

0
John500
Asked:
John500
1 Solution
 
nietodCommented:
Thanks.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now