Thread: don't want to show source

  1. #1
    Registered User
    Join Date
    Sep 2008
    Location
    philippiines
    Posts
    10

    don't want to show source

    Hi!

    I have a question, Every time I run my program I need to open it with the source
    code that i have made. My question is, Is it possible to run my program without
    opening the source so that no one can see how do I created the program?

    please help me!

    thanks!

  2. #2
    Kiss the monkey. CodeMonkey's Avatar
    Join Date
    Sep 2001
    Posts
    937
    Your compiler creates an executable file somewhere whenever you compile your code. You can use your system's file browser to open that file without seeing any code. What's so secret? It doesn't sound like you work for the Pentagon.
    "If you tell the truth, you don't have to remember anything"
    -Mark Twain

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    62
    You should know that for the most part, there is no way to truly make your code invisible, because eventually the cpu HAS to process it, and anything the CPU can process, humans can process (given a little time).

    Like CodeMonkey said, distribute the executable that is made by the compiler, it is dumped in the project directory somewhere when you compile.

  4. #4
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Why on earth would you need your source code to run your program?
    What kind of strange C++ compiler are you using?
    Once you compile your code into a binary executable, that's it, you just run the executable. No source code is required unless you want to make a change and re-compile it.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  5. #5
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    When you run your program from an IDE (where it shows your source code) it creates an executable (exe) usually in the same folder or under/bin/Debug/ or /bin/Release/ etc. then it runs it automatically.

    They can't see exe source code. Just bits an pieces, and assembly calls which most people don't understand, let alone have the time to compile into source code.

    You should also give open source more thought. You'll probably like the concept eventually.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Threads to keep the CPU faster than the disk?
    By matthew180 in forum C Programming
    Replies: 4
    Last Post: 06-06-2007, 03:23 PM
  2. Timers
    By Deb in forum C Programming
    Replies: 16
    Last Post: 04-23-2007, 10:15 AM
  3. Source routing
    By failure_to in forum Networking/Device Communication
    Replies: 2
    Last Post: 06-04-2004, 04:34 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM