Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 25-03-2008, 12:47 PM   #1 (permalink)
Lucky Rathod
Guest
 
Posts: n/a
Question 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

Old 25-03-2008, 01:05 PM   #2 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: convert .exe files to .c files

You can't.. Maybe reverse engg wd help? Google.
__________________
My new blog: www.pathikshah.com
Pathik is offline  
Old 25-03-2008, 01:50 PM   #3 (permalink)
The Smaller Bang
 
MetalheadGautham's Avatar
 
Join Date: Sep 2007
Location: Gautham City
Posts: 7,489
Default 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
MetalheadGautham is offline  
Old 25-03-2008, 02:30 PM   #4 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: convert .exe files to .c files

Quote:
Originally Posted by MetalheadGautham View Post
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
mehulved is offline  
Old 25-03-2008, 02:39 PM   #5 (permalink)
PhotonAttack
 
DigitalDude's Avatar
 
Join Date: Oct 2007
Location: Chennai
Posts: 1,277
Default Re: convert .exe files to .c files

try searching for a decompiler...



_
DigitalDude is offline  
Old 25-03-2008, 02:40 PM   #6 (permalink)
The Smaller Bang
 
MetalheadGautham's Avatar
 
Join Date: Sep 2007
Location: Gautham City
Posts: 7,489
Default Re: convert .exe files to .c files

Quote:
Originally Posted by DigitalDude View Post
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
MetalheadGautham is offline  
Old 25-03-2008, 02:43 PM   #7 (permalink)
PhotonAttack
 
DigitalDude's Avatar
 
Join Date: Oct 2007
Location: Chennai
Posts: 1,277
Default Re: convert .exe files to .c files

Quote:
Originally Posted by MetalheadGautham View Post
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



_
DigitalDude is offline  
Old 25-03-2008, 02:43 PM   #8 (permalink)
Think Zen.
 
ray|raven's Avatar
 
Join Date: Dec 2005
Posts: 1,498
Default 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
ray|raven is offline  
Old 25-03-2008, 03:00 PM   #9 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: convert .exe files to .c files

Try a file recovering software will you? (Recover-My-Files is good)
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 25-03-2008, 03:03 PM   #10 (permalink)
Think Zen.
 
ray|raven's Avatar
 
Join Date: Dec 2005
Posts: 1,498
Default 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
ray|raven is offline  
Old 25-03-2008, 04:00 PM   #11 (permalink)
Mobile Addict
 
Join Date: Aug 2006
Location: Kolkata
Posts: 165
Default 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.
aritrap is offline  
Old 25-03-2008, 04:02 PM   #12 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default 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
QwertyManiac is offline  
Old 25-03-2008, 06:31 PM   #13 (permalink)
Mad and Furious
 
redhat's Avatar
 
Join Date: May 2006
Location: Visual Basic 6.0
Posts: 453
Default Re: convert .exe files to .c files

Dunno, think a decompiler should work...
I have tried Java decompilers for that matter, dunno about C
redhat is offline  
Old 25-03-2008, 09:35 PM   #14 (permalink)
Fresh Stock Since 2005
 
Join Date: Feb 2005
Posts: 1,015
Default 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
khattam_ is offline  
Old 01-04-2008, 09:08 PM   #15 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2006
Posts: 48
Thumbs up 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.
lilovirus is offline  
Old 08-04-2008, 02:00 PM   #16 (permalink)
Err.. what?
 
BSOD's Avatar
 
Join Date: Apr 2008
Posts: 65
Default 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.
BSOD is offline  
Old 30-04-2008, 08:03 AM   #17 (permalink)
In The Zone
 
Ishan's Avatar
 
Join Date: Jun 2005
Location: Bharuch,Gujarat,India
Posts: 366
Default 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
Ishan is offline  
Old 30-04-2008, 11:05 AM   #18 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default 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
JGuru is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert Two AVI files into DVD? ajayritik Software Q&A 3 03-09-2007 10:47 AM
convert several wmv to mpg files Sridhar_Rao Software Q&A 6 21-05-2007 01:43 PM
how to convert .rar files into .exe MR.MOUSTACHE Software Q&A 18 17-04-2007 04:02 PM
how to convert dvd files to rmvb files raj4frns QnA (read only) 1 21-12-2006 10:26 PM
How do ya convert *.mp4 files 2 *.mpg or viseversa... koolbluez QnA (read only) 10 17-02-2005 10:22 AM

 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2