How to Recover from a Corrupted .dev File

If you are using Dev-C++ and your development environment (but not your source files) has become corrupted, you can use the following procedure to recover.

  1. Navigate to the folder containing your project.
  2. Delete all files EXCEPT your source files. Source files are files having .cpp or .h extensions in their names.
  3. Open Dev-C++.
  4. Select File/New/Project.
  5. Select Blank Project. The Create New Project window appears.
  6. In the Save In box, navigate to the folder containing your project (the same one from which you deleted the corrupted files).
  7. Choose a name in the File Name Box, then click Save. (This will be the name of the project.)
  8. Select Project/Add to Project. An Open file window appears, listing your source files.
  9. Select all of your source files , then click Open. Your source files will be added to this "clean" project.
  10. Now just select Execute/Compile and Run.