Thread: Changing a program to an application?

  1. #1
    Registered User
    Join Date
    Aug 2014
    Posts
    8

    Changing a program to an application?

    I was wondering if there was a possible way to change my c program into an application so that i can send the application to another person and not let the other person have access to my codings?

    My reasons for asking this question: For the application i want to send there are secrets that are meant to be unraveled by gameplay but i dont want people to look at the codes and know everything



    Code:
    
    

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    What compiler and IDE are you using (visual studio, eclipse, etc)? What platform (windows, linux, etc)?
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    You can turn optimizations on and strip all symbols from binary, that would make it really hard to be reverse-engineered.
    Apart from that, if you have cached information inside other files, you can add them as resources in the main executable.
    I don't think though that many gamers bother to try to comprehend the internal format of your various files.

    I say, don't bother too much with it. You shouldn't force, but rather allow the gamer to enjoy your game.
    Devoted my life to programming...

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Write a client and a server. The client will not store elements of gameplay that the player has not yet reached, retrieving them from the server when necessary.

    Of course, if you only have a few static paths for gameplay, a player who completes your game could publish a guide detailing what happens.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Aug 2014
    Posts
    8
    im using codeblocks windows 2007 64 bit

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    You should google how to distribute a MinGW program. There are a few DLLs you would need to send your friends along with the exe file.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  7. #7
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    If you enable static linking, your executable will be ready for distribution without the need of extra DLLs. You may consider using a 32-bit toolchain (minGW and gcc, libraries) so that the produced executable works on 32-bit machines as well. You may have 64-bit Windows but does your friend, etc?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 04-08-2009, 04:23 PM
  2. Changing a program into a Win Service
    By phal in forum Windows Programming
    Replies: 15
    Last Post: 08-03-2008, 05:31 PM
  3. Convirt my C program to a GUI application/Web Application
    By kapil1089thekin in forum C Programming
    Replies: 6
    Last Post: 07-21-2008, 01:43 AM
  4. Changing focus in an MFC Application
    By rangalo in forum Windows Programming
    Replies: 2
    Last Post: 06-20-2005, 06:21 AM
  5. Changing program from .cpp to .exe
    By BIt_toRreNt in forum C++ Programming
    Replies: 6
    Last Post: 02-16-2005, 04:24 PM