Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


HELP vc++ ate my project

This topic is 5924 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I Have been working a few weeks on a project, I had started a new map class. On one run, the program froze, when I opened the project again it said that my map map.cpp file was binary and could not be read. I looked at the file and my code has been replaced with some garbage. It still works, but I cant change anything cause I just cant read the code. Id like to know if vc++ 6.0 saves backup files, if it does is this on by default? where does it save them? or how do i enable this? and why did this happen? In the past vc++ has just destroyed entire files, like deleted them from my hd. Its just so frustrating to work on something for a while, only to have all thrown away. Help please.

Share this post

Link to post
Share on other sites
Well, sounds like you are screwed.

Interesting problem, though. I have never had dev studio destroy my work. Usually, I accidentally destroy it myself.

To prevent this problem in the future, I suggest you use some sort of version control. By making manual backups (Or use CVS or something) and numbering them, you will then have backups of your code as well as something to fall back on when your most recent development makes your code worse instead of better.

Share this post

Link to post
Share on other sites
well im screwed again. Ill have to get into that habit. It isnt always vc++, I know aleast one time(not this time) I screwed something up crashed and when i restarted my hd caught it as an error or corrupt file... and ate it. bitter memory, damn hd, didnt even ask permission.

but thanks man.

Share this post

Link to post
Share on other sites
Lets hope the code you lost wasn''t:

#include <stdio.h>

FILE *f;
int i;

f = fopen("map.cpp", "wb");
for (i=0; i<256; i++)
fputc(i, f);


return 0;

I hate when I do an error of this kind. You think about something else and use the name of a source file in the code.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!