How to open VB6 files from VB5

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

Visual Basic 6.0 Files Cause Trouble for Visual Basic 5.0

If you are using Visual Basic 5.0 and are seeing "Invalid Key 'Retained'" messages when you try to open Visual Basic project files, the cause is likely that the source files in question were created with Visual Basic 6.0. To get past these error messages, follow these steps:

  1. Use Notepad or some other text editor to open the .VBP file in question.
  2. Look for, and remove, all of the following lines:
    • Retained=0
    • DebugStartupOption=0
    • CodeViewDebugInfo=0
  3. If the source code uses class files (.CLS) you may also have to:
    1. Open each .CLS file with Notepad, or another text editor.
    2. Remove all of the initial lines of text, up to and including the line where you see "END".
  4. When you now try to open the .VBP file, you should (hopefully!) have no errors.