C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 20th, 2005, 06:07 PM
maxmax maxmax is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 14 maxmax User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 17 sec
Reputation Power: 0
how to view a programs code

hey
i was wondering, if theres any way i could somehow extract the code from a program that i have. take snood for example, or lode runner, or any small game or program like that, is there any way someone could look at the code for one of those? if so, how?
hope thats possible
thanks

Reply With Quote
  #2  
Old March 20th, 2005, 09:08 PM
Cirus Cirus is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 276 Cirus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 48 m 58 sec
Reputation Power: 4
Please explain "Extracting the code from a program"?

Reply With Quote
  #3  
Old March 21st, 2005, 04:38 PM
Hans71 Hans71 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 4 Hans71 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 21 sec
Reputation Power: 0
use a disassembler ?
better freshen up on the op-codes

Reply With Quote
  #4  
Old March 21st, 2005, 05:39 PM
maxmax maxmax is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 14 maxmax User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 17 sec
Reputation Power: 0
i mean like, not actually extract the code, just look at it. like, ok for instance in a web browser, if you wanna look at the source code for a site you can just click on view source. is there any way to do that with a program? whats a disassembler? is that how you do it? i really have no idea what im doing i hope im making this clear.

tahnks

Reply With Quote
  #5  
Old March 21st, 2005, 06:16 PM
BoolBooB BoolBooB is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 36 BoolBooB User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 35 m 42 sec
Reputation Power: 4
A dissasembler will show the assembly language code.

Reply With Quote
  #6  
Old March 22nd, 2005, 02:57 AM
Cirus Cirus is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 276 Cirus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 48 m 58 sec
Reputation Power: 4
Second to what BoolBob said. For instance in java, to view source for .class files , there is a command that disassembles the bytecode into assembly.

I think its "javad". Better check this.

Reply With Quote
  #7  
Old March 22nd, 2005, 05:33 PM
maxmax maxmax is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 14 maxmax User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 17 sec
Reputation Power: 0
ok cool, that'll help alot. thanks dudes

Reply With Quote
  #8  
Old March 24th, 2005, 06:41 PM
Hans71 Hans71 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 4 Hans71 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 30 m 21 sec
Reputation Power: 0
Cirus, don't you mean javap ?

I thought it only showed members and function prototypes.

Tell me if i'm wrong but to my knowledge you can't "extract" the source from a compiled executable

When compiling c/c++ the only thing you can do is compile it with debug hooks so you can

debug it, but still, you need the source or some format that the compiler created out of it.

At least thats the way it works on our mainframe, i'm guesing it's not very different on other platforms.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > how to view a programs code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT