问题
Is there any .obj to .cpp converter?
Is it possible to do it?
MICROSOFT VISUAL STUDIO auto-magically deleted my code files when pressed the F5 key.
Please help me.
I have the .obj files (VS forgot to delete them.ha ha ha).
回答1:
Unfortunately it is impossible to decompile an .obj file back to source. More info here.
回答2:
shut down your computer, boot from removable media, some sort of the UNIX, and run strings utility on your hard drive. It may be able to recover text off your source code.
回答3:
As everyone has pointed out, this is impossible.
I would suggest that before you rebuild all those files, you take the time to look into SVN or another version control system.
Version Control allows you to save copies of your files to a safe place. If the compiler eats your homework, you can update with the last copy you saved to the repository.
回答4:
You should try Recuva
回答5:
You are out of luck. There is no safe way to reverse an obj file back to its cpp source.
回答6:
I do not think that is actually possible. You'd be reversing the compilation process, which from my knowledge is not possible.
回答7:
It is impossible to do that...as all the code's comments and variables are translated into a machine code, you cannot deterministically reproduce a variable name by gleaning in on assembler byte code, Consider this as an example of a mock dump of a binary image:
0x55 0x90 0x33 0xf0 ....
Now, how can you tell that's variable foobar
that is of type int
....
Hope this helps, Best regards, Tom.
回答8:
.obj files are text files for a 3d modle i was actuly looking for something to bring them into cpp to display using openGL. there are programs out there to load them into cpp i was looking for one to download when i came arcoss this.
en.wikipedia.org/wiki/Obj
回答9:
As said earlier, it is impossible to get the C source code from on obj. As an alternative, you can try a file recovery utility and scan your disk for lost files. I have previously used testdisk with partial success.
Also, you really need to use some form of SCM!
回答10:
NO, it's not possible. obj files contain object code, not source code. The compilation process is typically not reversible.
PS: Visual Studio did surely not delete your code files when you pressed F5. They are somewhere, or you've deleted them accidentially.
来源:https://stackoverflow.com/questions/2262041/obj-to-cpp-converter