Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 6
    You have a couple of answers, but here's a piece of advice for going forward... protect yourself against code loss by learning how to use a VCS (Version Control System). This will allow you to keep all changes to your software on both your local computer as well as a remote system which stores it. Nowadays, I use git, but there are several. Github is a free online git storage facility. So you do some code, "commit" your changes, and then "push" them up to Github. You can then pull your code down to any computer with git on it thereafter. Commented Sep 18, 2019 at 20:22
  • You likely can't recover the source code, but if you had some important logic that you don't want to rewrite from scratch, it's very likely you can dump out the assembly and reconstruct that into C pretty easily (although manually). Commented Sep 19, 2019 at 11:04
  • 1
    Isn't the code in one of your backups, or your version control system? Commented Sep 19, 2019 at 11:58