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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating independent programs? 1

Status
Not open for further replies.

fatboyjim

Programmer
Mar 18, 2005
2
GB
Hi

Using C++ Builder 6, is there a way to compile my console apps so that they can be executed on a machine without Borland, and indeed without the Borland runtimes installed on the target machine?

Also, is there a way to change the icon of my application? Or is that a no-no seeing as it's console?

Cheers
Jim
 
Jim,

my answer to custom icon question is located here.

To compile your console app to work on machines without BCB runtimes you should :

1. Go to Project->Options->Linker tab and uncheck "Use dynamic RTL"
2. Go to Project->Options->Packages and uncheck "Build with runtime packages"

That works for window based apps, so should be fine for console too.

Hope that helps
Michal
 
The custom icon thing works a treat... although I think you need to add the ".rc" to the project rather than adding the ".res" which doesn't appear, for me, until i compile the full project

The runtimes thing works perfectly as well. Thanks very much!

Jim
 
Actually, I thought the same initially, but when I tried to add .rc and compile it with rest of the project I got some strange errors. Adding compiled .res helped.
Anyway, due to hardware errors my computer had been acting strangely until I fixed it today. Maybe that was the cause of my problems, dunno.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top