Results 1 to 7 of 7

Thread: URGENT - problem copying VB project to another pc

  1. #1

    Thread Starter
    Fanatic Member ahara's Avatar
    Join Date
    Nov 2003
    Location
    Toronto
    Posts
    531

    URGENT - problem copying VB project to another pc

    Hello;

    I have just copied another developer's project onto my machine and it will not run. I get the error 'can't find project or library'. It is crashing on the basic functions intrinsic to VB such as trim, ucase, chr, etc. Is this because the project needs to be in a folder with the same name as the original project? If not, any ideas as to what I can do? My version of VB is fine, as I have numerous other projects on my machine that can find the libraries in msvbvm60.dll and they all run OK.
    "Knowledge is gained when different people look at the same information in different ways"

    - Louis Pasteur

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    First check project - references and make sure all vb related are there (at least 3 mandatory refs) - reapply if necessary. If that doesn't help then open new project and inert all objects from "bad" one into it and save it to replace original.

  3. #3

    Thread Starter
    Fanatic Member ahara's Avatar
    Join Date
    Nov 2003
    Location
    Toronto
    Posts
    531
    Thanks for the reply;

    I am in the process of doing just that (inserting the objects), but this project has about 50 forms, and numerous .ocx refernces, so it is really tedious. Is VB not a more portable language? Or are we screwed like this each time we share projects? If anyone else has any ideas, this shop would love to hear them! Thanks.
    "Knowledge is gained when different people look at the same information in different ways"

    - Louis Pasteur

  4. #4
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    You get this error when a reference is missing. Not necessarily the msvbm reference though.

    For example, If your project uses lets say Microsoft Active X Data Objects 2.7 on one machine, if you open the project on the second machine that does not have this reference (It may only have up to 2.6) then you will get those errors when trying to run.

    If you look at the Projects-> References on the new machine you will see a big MISSING: next to one of your references. Get that reference loaded on the new machine and you should be all set.

  5. #5

    Thread Starter
    Fanatic Member ahara's Avatar
    Join Date
    Nov 2003
    Location
    Toronto
    Posts
    531
    This is not the problem as all proper references are there. I checked and checked and checked. Besides, it is crashing on trim, ucase, chr, etc. These are part of the VB runtime library which resides in msvbvm60.dll. I have seen this before, and there are numerous references to it in other forums, but no-one seems to know why.
    "Knowledge is gained when different people look at the same information in different ways"

    - Louis Pasteur

  6. #6
    Frenzied Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    1,564
    Try creating a New Project and then Add the Forms and Modules afterwards.

  7. #7
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132
    ... bloody crossposters ...

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