Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
C++

How do I create a stand-alone application in C++Builder.

Author: Embarcadero USA


Question:



How do I create a stand-alone application, i.e. one that does not require external DLL or BPL files?


 

Answer:



There are two project options relevant to this problem. Making the following changes will cause Borland packages and the C++ runtime library to be compiled into your executable file:

  • From the main menu of the C++Builder IDE, Click Project, Options, then the Linker tab. Uncheck the option labeled “Use Dynamic RTL”.
  • In the same window, click the Packages tab and uncheck the option labeled “Build with runtime packages”, and click Ok.

Note: 3rd party C++ libraries are not affected by these settings. ActiveX controls used by the application must always be deployed in a separate file.



 

Article originally contributed by Vincent Drake

See What's New in 12.2 Athens See What's New in 12.2 Athens Dev Days of Summer 2-24

Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES