• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Decompile C++ code?

Deeko

Lifer
VC++ was kind enough to crash on me and delete my program I've been working on all week. I have the .obj file that was created when the program was compiled. Is there any way to decompile this back into C++ code?
 
If such a way truly exists, I would love to know it too. I get tired of having something wierd happen whilst I code, and having to start over from scratch because I didn't save.
 
yikes - no backups of your project after a week of work? Zip tools are your friend.

There are decompiler tools advertised in WDJ / MSJ but they're expensive and probably don't have 30-day trials.
 
Originally posted by: DaveSimmons
yikes - no backups of your project after a week of work? Zip tools are your friend.

There are decompiler tools advertised in WDJ / MSJ but they're expensive and probably don't have 30-day trials.

well, its not like I wasn't saving. And I've never lost a file in such an obscure way before....
 
well, its not like I wasn't saving. And I've never lost a file in such an obscure way before....

You should be backing up for version control if nothing else. So when you accidentally delete the wrong block or make a revision that goes horribly wrong you can revert back to before the error.
 
Even if you can decompile it, your code will be a mess...

Many different functions map to the same assembly instruction... and upper level functions call lower level functions to do the work... When you go back the other way, it's impossible to get the code you wrote...

 
Delete your program? I have had Visual Studio crash on me hundreds of times but it has never deleted any files. I suppose it's possible that it crashed right before writing your file.

It's possible that your source code file(s) are still intact somewhere in the temp folders, so search for them! If not, your best option is to STOP using the hard-drive and use a data recovery program to search for your source code files. You may be able to salvage some data since source code is just plain text.
 
it deleted all of your saved files as well? as in previous saved files? or did u just keep resaving the same file and that 1 file is gone?
 
Originally posted by: tkdkid
Originally posted by: Spyro
Originally posted by: BingBongWongFooey
I have had Visual Studio crash on me hundreds of times

?!?!?! Why would you keep using such a POS?

I'm hoping that was an exxageration :Q

It's not that hard to do, put in a never-ending loop or access an invalid memory location and it'll crash.

That sucks though. You compile a flaky app and it also crashes your editor? Yikes.
 
Originally posted by: tkdkid
Originally posted by: Spyro
Originally posted by: BingBongWongFooey
I have had Visual Studio crash on me hundreds of times

?!?!?! Why would you keep using such a POS?

I'm hoping that was an exxageration :Q

It's not that hard to do, put in a never-ending loop or access an invalid memory location and it'll crash.

Sooo, there is no way to break out of an endless loop or correct a memory error. Didn't earlies versions of visual studio not have this issue?
 
Originally posted by: Spyro
Originally posted by: tkdkid
It's not that hard to do, put in a never-ending loop or access an invalid memory location and it'll crash.

Sooo, there is no way to break out of an endless loop or correct a memory error. Didn't earlies versions of visual studio not have this issue?
Visual Studio 6 does not crash under Win2K or XP in endless loops or after access violation. "What is the 'break' button' Alex." Obivously the program you are debugging in the IDE crashes, but not the IDE itself.

I've also never had Visual Studio (4.x - 6) delete or damage a source file in 7 years of daily use, so I suspect either something else is wrong with the system or Deeko is writing some file-handling app that is going berserk.

That's another reason why backups (preferably off the machine) are a Really Good Thing.
 
Originally posted by: Spyro
Originally posted by: BingBongWongFooey
I have had Visual Studio crash on me hundreds of times

?!?!?! Why would you keep using such a POS?

I'm hoping that was an exxageration :Q


Well, maybe a slight exaggeration 🙂 A lot of the time Visual Studio crashed was when I was debugging multithreaded programs. Other times I was editing a MFC project and the IDE would crash the moment after opening the project without giving any error messages. I had to manually delete a corrupt project file in order for the IDE to load, but since there were no error messages, it took me a while to figure this one out.

I keep using it because there's nothing better for Windows development. The integrated debugger is especially nice.
 
Originally posted by: singh
Originally posted by: BingBongWongFooey
Threads...evil..must..stay...away..

Threads are priceless 🙂

Actually, they're worth 'bout a buck a post 🙂

Since this one hasn't turned into an ide flame war, we'll give it 2 bucks 😀
 
Back
Top