Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C++ Annoying Problem

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
samo502
Master Cheater
Reputation: 0

Joined: 14 Mar 2008
Posts: 342
Location: That place.

PostPosted: Tue Oct 20, 2009 3:25 am    Post subject: C++ Annoying Problem Reply with quote

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
View user's profile Send private message MSN Messenger
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Tue Oct 20, 2009 3:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Tue Oct 20, 2009 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message
samo502
Master Cheater
Reputation: 0

Joined: 14 Mar 2008
Posts: 342
Location: That place.

PostPosted: Tue Oct 20, 2009 6:28 am    Post subject: Reply with quote

Thanks for the help, I'll try it out when I get home.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites