-
Running program
I am using MS Visual C++ version 6.0. The program I have written is just written using C (not C++). I am wondering if I can compile and build this program permanently, so that it can just be executed later ... without having to open up Visual C++, and open up the program, etc. I would like it if the user of my program would never have to see the actual code that I wrote.
Can this be done in MS Version 6?
Thanks,
muffin
-
Yeah, when you compile and build it, it should produce an exe file that you can just run w/o having to mess with the code.
-
Running Program
If I want to install this .exe on another machine that has MS C++, do I have to load just the .exe file, or do I have to have the other files that it creates as well .... i.e. the project workspace, etc., etc..?
Thanks,
muffin
-
you only need to give him the .exe and any other data files that the exe will use...... i.e. bitmap files,text data files etc.
you do not need to give away the compilers working files such as .dsp .dsw .cpp .h .opt .obj etc.
-
The executable and any data files are the only files that you need in order to run the program. You should compile the .exe in release mode rather than debug mode.
Also, professional programs are written so that you only have to keep the file that contains your definitions. It does not hurt if anyone sees your other files because they do not reveal the underlaying code.
-
Running Program