Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Corrupt Program

Status
Not open for further replies.

jtracy

Programmer
Nov 15, 2001
8
US
I am pretty sure my Visual Basic program is corrupt and to top it off I think I over wrote the backup with the corrupt files. I am not able to open it at all! Is there any way to fix this. The error I get is "The project file C:\.....vbp contains invalid key" and then there is a bunch of garbage. Please help me if you have any knowledge of this. This was a huge program that took many months to write.
 
Its possible that the only file that is corrupt is the .vbp file - that is the project file.

As long as your form files (.frm and .frx), module (.bas) and classes (.cls) are still there, your code should be okay.

Then all you need to do is to rebuild the project. Create a new project, and then add to that new program all your existing references, then modules, classes, and forms. Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
I tried that but it gives me the message that the .frm could not be loaded? Is there any other way to salvage this project? Thank you!
 

You can open up your bas, frm, vpb files with notepad. You should then be able to salvage what you can via cut and paste, or in the unlikely event that you are able to repair the file with notepad you should then be able to use it.

Good Luck
 

The last question that I have for you is...

Have you ever moved you program code from one system to another. If you have is that other system running a different language or character set (regional option?)?

If so that may be your problem (then again it is just a shot in the dark).

If not, I out.
 
No I have not done that, but thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top