 |
25-03-2008, 12:47 PM
|
#1 (permalink)
|
|
Guest
|
convert .exe files to .c files
Friends is it possible to convert .exe files to .c files as i have deleted my .c file accidentally
|
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
25-03-2008, 01:05 PM
|
#2 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: convert .exe files to .c files
You can't.. Maybe reverse engg wd help? Google.
__________________
My new blog: www.pathikshah.com
|
|
|
25-03-2008, 01:50 PM
|
#3 (permalink)
|
|
The Smaller Bang
Join Date: Sep 2007
Location: Gautham City
Posts: 7,489
|
Re: convert .exe files to .c files
If the program was your own, there is no reason why you can't rewrite it.
If it was downloaded, there is no reason why you can't download it again.
But exe to c is a next to impossible job.
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
|
|
|
25-03-2008, 02:30 PM
|
#4 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: convert .exe files to .c files
Quote:
Originally Posted by MetalheadGautham
If the program was your own, there is no reason why you can't rewrite it.
If it was downloaded, there is no reason why you can't download it again.
|
And if you copied it from someone, you can copy it again.
__________________
http://www.bash.org/?258908
|
|
|
25-03-2008, 02:39 PM
|
#5 (permalink)
|
|
PhotonAttack
Join Date: Oct 2007
Location: Chennai
Posts: 1,277
|
Re: convert .exe files to .c files
try searching for a decompiler...
_
|
|
|
25-03-2008, 02:40 PM
|
#6 (permalink)
|
|
The Smaller Bang
Join Date: Sep 2007
Location: Gautham City
Posts: 7,489
|
Re: convert .exe files to .c files
Quote:
Originally Posted by DigitalDude
try searching for a decompiler...
_
|
a decompiler needs to convert binary to c in this case. Its very hard to do even for a human, and won't generate the same code.
__________________
http://TheSmallerBang.wordpress.com
eMachines E725 - T4400 2.2GHz, 1GB, 160GB
Nokia 5130XM * T-Sonic 610 2GB
Nokia 2323C * Samsung Galaxy Y
Apple iPad 2 16GB WiFi
|
|
|
25-03-2008, 02:43 PM
|
#7 (permalink)
|
|
PhotonAttack
Join Date: Oct 2007
Location: Chennai
Posts: 1,277
|
Re: convert .exe files to .c files
Quote:
Originally Posted by MetalheadGautham
a decompiler needs to convert binary to c in this case. Its very hard to do even for a human, and won't generate the same code.
|
Most probably he would have written a simple C program  Thats why I said
_
|
|
|
25-03-2008, 02:43 PM
|
#8 (permalink)
|
|
Think Zen.
Join Date: Dec 2005
Posts: 1,498
|
Re: convert .exe files to .c files
Decompiler work for languages that write byte code and not binary.
I did use one once, when i acidentally deleted my java files instead of my class files, Yeah, Stupid me.
They dont give you the exact code , but its helpful instead of starting back from ground zero.
__________________
Do what you will; but not because you must. -- Zen Quote
|
|
|
25-03-2008, 03:00 PM
|
#9 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: convert .exe files to .c files
Try a file recovering software will you?  (Recover-My-Files is good)
__________________
Harsh J
www.harshj.com
|
|
|
25-03-2008, 03:03 PM
|
#10 (permalink)
|
|
Think Zen.
Join Date: Dec 2005
Posts: 1,498
|
Re: convert .exe files to .c files
^Well, in my case , XFS has no undelete mechanism.
__________________
Do what you will; but not because you must. -- Zen Quote
|
|
|
25-03-2008, 04:00 PM
|
#11 (permalink)
|
|
Mobile Addict
Join Date: Aug 2006
Location: Kolkata
Posts: 165
|
Re: convert .exe files to .c files
Whose program was it anyway? If it was yours, you could have rewritten it easily.
Have you forgotten the site from where u downloaded it? ? ?
__________________
Please visit my site: hotshot05.page.tl or my blog: mobimad.co.cc for anything related to mobile reviews, games , applications and news. Please review my site.
|
|
|
25-03-2008, 04:02 PM
|
#12 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: convert .exe files to .c files
Err why do you guys thing rewriting code is easy? It could have been over 500~ lines, a piece of art put together day by day! It'd be downright frustrating to rewrite the entire process again.
And why is it a common thing with you guys to think that every other poster here in this section only downloads or asks for code and never codes himself? :\
__________________
Harsh J
www.harshj.com
|
|
|
25-03-2008, 06:31 PM
|
#13 (permalink)
|
|
Mad and Furious
Join Date: May 2006
Location: Visual Basic 6.0
Posts: 453
|
Re: convert .exe files to .c files
Dunno, think a decompiler should work...
I have tried Java decompilers for that matter, dunno about C
|
|
|
25-03-2008, 09:35 PM
|
#14 (permalink)
|
|
Fresh Stock Since 2005
Join Date: Feb 2005
Posts: 1,015
|
Re: convert .exe files to .c files
java decompilers might work..coz it is an interpreted language. But getting .c from exe is IMPOSSIBLE....
all you can do now is try file recovery.. or rewrite the code..
__________________
http://www.khattam.info
|
|
|
01-04-2008, 09:08 PM
|
#15 (permalink)
|
|
Right Off the Assembly Line
Join Date: Nov 2006
Posts: 48
|
Re: convert .exe files to .c files
You can get assembly code out of your exe, and if you understand assembly then you can write C code by looking into it.
As while doing name mangling compiler puts different name for variables in exe so you can not get back original C file. but surely you can get your code back.
|
|
|
08-04-2008, 02:00 PM
|
#16 (permalink)
|
|
Err.. what?
Join Date: Apr 2008
Posts: 65
|
Re: convert .exe files to .c files
Even if it is possible to actually get back the code manually, it would take days, if not months. Its better if you rewrite the whole thing or use a recovery software to find the deleted file.
|
|
|
30-04-2008, 08:03 AM
|
#17 (permalink)
|
|
In The Zone
Join Date: Jun 2005
Location: Bharuch,Gujarat,India
Posts: 366
|
Re: convert .exe files to .c files
Digit guys are getting sick day by day!
__________________
When was the last time when you did something for the first time?
So many words for the broken heart.....
for world wars. ishangajera.blogspot.com
|
|
|
30-04-2008, 11:05 AM
|
#18 (permalink)
|
|
Wise Old Owl
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
|
Re: convert .exe files to .c files
Use can try Reverse Engineering Compiler (REC 2.1) to convert EXE to a
C language file.
http://www.backerstreet.com/rec/rec.htm
I don't know how good it is, since I haven't tested it.
__________________
* Imagination is more important than knowledge.
-Albert Einstein
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|