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