Question:
How to distribute a .exe file created from Turbo C++?
zr350sa110025
2009-12-02 06:42:27 UTC
I have created a program in Turbo C++.
I need to show the program to other people, but i do not want to show them the coding.

Those guys wont have Turbo C++.....
so is it possible that i give them just an .exe file of the program?

I tried to run the executable on my other PC......but it failed.

The Program needs access to some Header Files in the INCLUDE folder.
Also it needs BGI for graphic codes.

So, i tried to zip my TC folder with all Sub Directories it needs.
But still, i cant run the .exe in a different PC.

The Problem that may cause it:
-in TC options -> Directories... -> The path of Header files will be wrong, if i extract the zip file into a different directory.
-also, when i initialize graphics in the code by : "initgraph(&gd,&gm,"C:\\TC\\BGI");"
....The BGI folder is not found, because i had unzipped the files in in a different directory.

Then i tried to extract the zip file, in the same Directory as my source directories....and it worked!

But, I cant explain all this to other people when im distributing that file :S.
So, how can i set the paths, that makes it work in all PCs (yah in Windows XP i mean :) )
Three answers:
?
2009-12-02 06:55:42 UTC
If your program is error-free, just compile the code and press "Make".. You will find that an executable .exe file is placed inside your "bin" folder by default. That's portable to any windows platform.



If you still have trouble locating the .exe file, in the TC editor, click options->directories and note the output directory path and look for the file in the path.



And yea, you can port the whole turbo C++ to any other system. Make sure you place the TC folder on the same path as your computer. ie; if your TC is at C:\123\TC , place the whole directory in C:\123\TC on your friend's system.
lbarroqueiro
2009-12-02 06:53:19 UTC
you need to link the library (repository of all functions) your file have only links that will work in other computer if the others have the library... try this link...why you not use netbeans or eclipse to easy your life?
2016-05-25 02:18:44 UTC
itu karena virus gang.., saran syaa pake windows repaire all in one,,. nih software akan merset registry dan setting2 yang dilakukan di windows,,. solusi lain dari repair dan install ulang windows neh,. karena agang tidak usah repot2 inul windows dan inul aplikasi.,. neh software yg berjalan di desktop,.. jadi gampang,. selama anee make neh software, yg biasanya direset cuma key2 yg korup dan file system yg korup,., namun tidak semua masalah bisa diatasi software ini,,. tapi selama anee make nih belum pernah anee gagal nyembuhin laptop teman2 anee,,., hehehe.,.,


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...