CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Problems loading project

    I got some projects from internet. When I open , i get an error: retained: unknown keyword, or something. What is wrong


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Problems loading project

    I've know this problem, you're using VB5 and try to open a VB6 project. VB6 uses the key retained, wich VB5 doesn't know. To bypass this problem, select (using explorer) the project and rename it to myProject.txt. Now open it in notepad. Search for a line beginning with retained, this will look something like retained=0, select the line, and delete it. If you try it now, it should work, if you get the same error, but a different keyword, do the same, and remove that keyword-line. I'm not sure, but I think you might get an error on MaxNumberOfThreads. When you have deleted all the erroneus lines, rename it back to .vbp and open it in VB.
    Please note that the author might have used some commands that only apply to VB6 (like split, replace). You will need to program them yourself!!!
    Further side-effects of this solution are not known to me, maybe someone else knows any?

    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured