Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executable can not find *.bpl file 1

Status
Not open for further replies.

Bachatero

Programmer
Aug 30, 2006
36
NL
Hi,

If I run my program.exe on another computer the following error message is displayed:

This application has failed to start, because ****.bpl was not found. Reinstalling the application may fix this problem.

I use Borland C++ builder. On the computer where C++ builder has been installed the executable works fine.

Thanks in advance.

Johan
 
The bpl file is a libray file similar to a dll file. these must be copied over along with the executables. Two ways to do this; Get dependancy veiwer of just keep trying to run the program until all the appropiate files are copied over.


The simplest solution is the best!
 
For more info, look at faq101-187, faq101-188, & faq101-189.


James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
Thanks James,

I unchecked the two project compiler options and it works perfect now.

I have a last question:

The only file that is not statically linked is my program icon (*.ico). Is there an option in the project compiler options window so that this ico is linked as well?

Now I copy this icon to the directory where the exe file is located.

Thanks in advanced.

Johan


 
On the compiler select Project->Options and the option form should pop up. Select the Application tab. You can add the icon using the Load Icon button in the middle of the form.



James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
James,

I know how to load the programs icon, however, if I move the exe file to another computer, I have to put the programs icon in the same directory as where the exe file is placed. It seems that the programs icon is dynamicly loaded as well.

Johan
 
Once I link the icon to my program, I don't need to include the icon as a file on the user's computer. It's included in the executable. Odd. What options are you using when you create the final executable?


James P. Cottingham
-----------------------------------------
[sup]I'm number 1,229!
I'm number 1,229![/sup]
 
James,

It works. I removed this line in my source code.

Application->Icon->LoadFromFile(NEMA_Review + "MyIcon.ico");

Thanks for your replies.

Johan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top