Recent Comments

2008年2月19日 星期二

How to Run a Stand Alone Borland C++ Application

Borland C++ Builder (BCB) is a good tool for all range (both object-oriented and/or dynamic) of applications that require a utilization of a graphical user interface (GUI). Traditional C/C++ programs can also be easily integrated with the drag-and-drop tool used for creating a graphical user interface.

Creating an application using BCB is a lot of fun and challenges. However, once the application has been finally created, the next problem is how to run the application (the .exe file) in a stand alone manner, that is, how to run the exe file in a computer without Borland C++ Builder installed.

If the application was ran as stand alone, it will look for some .dll’ s and other files that is required to lunch a BCB created application. Unfortunately, if the computer where the program was ran has no BCB installed, the application will flag an error and terminate.

If you are using a version 6.0 of BCB, you may try the following steps to solve this problem;

1. Go to “Project -> Options”. On “Linker” tab, uncheck the “Use dynamic RTL” checkbox. And, on “Packages” tab, uncheck the “Build with runtime packages”.

2. Compile your project application and save.

3. Using the search tool of windows, search for the following files in the “Borland” folder, where Borland C++ builder was installed:
- borlndmm.dll
- cc3260mt.dll
- stlpmt45.dll
- bcb2kaxserver60.bpl

4. Copy the files that you searched in step 3 to the folder where you want to run the application (the executable file).

This one works well on the 30 day trial edition of Borland C++ Builder 6.0.

0 意見: