View previous topic :: View next topic |
Author |
Message |
samo502 Master Cheater
Reputation: 0
Joined: 14 Mar 2008 Posts: 342 Location: That place.
|
Posted: Tue Oct 20, 2009 3:25 am Post subject: C++ Annoying Problem |
|
|
C++ is undoubtedly my favorite programming language, I've been increasingly working with it lately and one day I stuck one of my released binaries into OllyDbg out of curiosity to what it would look like or what hacks could be possible in AA (Basically it was just a program that no newbie at CE could at all). As I was looking through the AA I noticed it was spewing source code in the little box and double clicked it only to find out that OllyDbg could display my source code in it's entirety. I asked a friend about it and he said it had something to do with the compiler embedding the source in the final EXE or something to that effect and it could be turned off, but he didn't know how. I would like to know how to turn off this option because there are a few things I'd like to release at some point, and I don't want people stealing my source and calling it theirs.
Any help is appreciated, Samo.
|
|
Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Tue Oct 20, 2009 3:58 am Post subject: |
|
|
The source code is not in the exe, but in the .pdb file that's in the same directory as the exe. The exe itself contains a reference to the .pdb file.
So when you give someone the exe he can't view the source since he doesn't have the .pdb
To turn it off, in VC++ project options, apply these settings:
C/C++ --> General --> Debug Information Format = Disabled
Linker --> Debugging --> Generate Debug Info = No
|
|
Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Tue Oct 20, 2009 3:59 am Post subject: |
|
|
That's probably because you also loaded the program debug database. Just do a release build and don't let Olly to load the pdb (ie. delete it or w/e) and you're fine.
EDIT: ops, missed a word :P
Last edited by Jani on Tue Oct 20, 2009 10:33 am; edited 1 time in total |
|
Back to top |
|
 |
samo502 Master Cheater
Reputation: 0
Joined: 14 Mar 2008 Posts: 342 Location: That place.
|
Posted: Tue Oct 20, 2009 6:28 am Post subject: |
|
|
Thanks for the help, I'll try it out when I get home.
|
|
Back to top |
|
 |
|