Archived

This topic is now archived and is closed to further replies.

Borland C++ question

This topic is 6074 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I have a question about Borland C++ Builder4. My question is, when I make an application, the program will run fine on the computer that has the C++ installed, but when I try to move it to another computer there are a bunch of files that are missing (.dll''s etc.). Now as long as I copy all of the files that the program wants onto the other computer everything works fine. I was just wondering if there is a way to get the compiler to compile the needed files into one .exe. Or do I simply have to include all the files that are needed in the .zip for my file (if I ever release it). Thanks for any help. -Sam.

Share this post


Link to post
Share on other sites
I''ve got C++ Builder 4 and get the same problem. You could just isolate the dll''s and stuff and add them to your project some how. I think it does it because it says in the Licence Agreement that you are only allowed to make programs on your own computer and are not allowed to give them away even as freeware, so they made it dificult!!
You could buy MS visule C++ 6.

Hope this helps,

J

Share this post


Link to post
Share on other sites
quote:
Original post by Sam Gamgee

Hi,

I have a question about Borland C++ Builder4. My question is, when I make an application, the program will run fine on the computer that has the C++ installed, but when I try to move it to another computer there are a bunch of files that are missing (.dll''s etc.). Now as long as I copy all of the files that the program wants onto the other computer everything works fine. I was just wondering if there is a way to get the compiler to compile the needed files into one .exe. Or do I simply have to include all the files that are needed in the .zip for my file (if I ever release it).

Thanks for any help.

-Sam.



There are 2 ways of doing it. The first one as proposed by Martee is to use static libraries. The second is to just zip the damn dll''s in with your zip file...




"And that''s the bottom line cause I said so!"

Cyberdrek
Headhunter Soft
A division of DLC Multimedia

Resist Windows XP''s Invasive Production Activation Technology!

Share this post


Link to post
Share on other sites
Under the "component" menu "options" submenu in BCB5, there is checkbox for "Build with Runtime packages". Uncheck this box.

If you want to make this change for just the single project, then under the "Project" menu, select options and then on the "Packages" tab you''ll see the same type of checkbox.

Share this post


Link to post
Share on other sites
To make a stand alone .exe with CBuilder5:

Go to Project->Options->Compiler and click on the Release button.

Then go to Project->Options->Packages and uncheck the Build with runtime packages.


I know you''ve asked about CBuilder 4 but I think this options are the same...


Note: CBuilder 5 has a CodeGuard tool that must be disabled before generating the exe file...



"- To begin with, said the Cat, a dog''s not mad. You grant that?
- I suppose so, said Alice.
- Well, then, - the Cat went on - you see, a dog growls when it''s angry, and wags its tail when it''s pleased. Now I growl when I''m pleased, and wag my tail when I''m angry. Therefore I''m mad."

Share this post


Link to post
Share on other sites
Andre Luiz Silva, yea it does work in borland C++ builder 4. And theres no code guard in it, so u only need to change them two settings. BTW would u not have been better posting this in the borland turbo room, you would have been more likely to get an answer..

G Coates
------------------------------------------------------------

Windows: The only virus with a GUI!

Share this post


Link to post
Share on other sites
Thanks for helping me everyone. What you said works fine in BCB4!

I''m curious about what you said earlier though, Jason2Jason, about the license not allowing you to distribute your program even as freeware...is this true? I don''t remember reading that, but perhaps I missed it?

Thanks again.

-Sam.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Read the deploy.txt in de ''root'' install dir:

2.2 INPRISE Runtime Packages
----------------------------
In accordance with the General Terms That Apply to Compiled
Programs and Redistributables, you may redistribute
INPRISE-supplied runtime packages only for the purpose of
executing application programs created with C++Builder. You may
not modify these packages in any way. By default the
redistributable runtime packages are installed in the
\Windows\System directory (for Windows95) or
\Windows\System32 (for Windows NT).

Grtz Me...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Forgot my user name. (Upper message)

magicalfun@mgfun.com

Share this post


Link to post
Share on other sites