Thread: Running program

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    20

    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

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    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.

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    20

    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

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    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.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  5. #5
    Anti-Terrorist
    Join Date
    Aug 2001
    Location
    mming, Game DevelopmentCSR >&<>&2Minimization of boolean functions, PROM,PLA design >&0>&WA, USA guitar, dogsCommercial Aviation >&>>&USAProgramming
    Posts
    742
    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.
    Last edited by Witch_King; 08-30-2001 at 10:44 AM.
    I compile code with:
    Visual Studio.NET beta2

  6. #6
    Registered User
    Join Date
    Aug 2001
    Posts
    20

    Smile Running Program

    Thanks!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 10
    Last Post: 04-07-2008, 09:14 AM
  2. Program running long
    By smarta_982002 in forum Windows Programming
    Replies: 3
    Last Post: 03-27-2008, 05:24 AM
  3. Running my program in the background
    By shoobsie in forum Windows Programming
    Replies: 4
    Last Post: 10-09-2005, 02:38 AM
  4. Replies: 3
    Last Post: 09-05-2005, 08:57 AM
  5. Why is my program running away?
    By badkitty in forum C++ Programming
    Replies: 4
    Last Post: 09-19-2001, 04:27 PM