Error: Error opening project: "retained" is an invalid key

Error Message

When you attempt to load the MoView2 sample into Visual Basic 5.x, the following error may appear:

Error opening project: "retained" is an invalid key.


The "retained" key was added at VB6 and is not recognized by VB5.

Solution or Workaround

The following steps should make it possible to load MoView2 in VB5. However, be aware that other problems may arise due to the fact that MoView2 was written in VB6.

  1. Open MoView2.vbp in Notepad.
  2. Search for the "retained".
  3. Delete the line: "Retained=0".
  4. Save and close the file.