Results 1 to 2 of 2

Thread: VB6: “Compile error: Can't find Object or library”

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2008
    Posts
    248

    VB6: “Compile error: Can't find Object or library”

    I have TFS setup in the network and my projects are managed here.

    When i run my vbp project file i get the error saying "Compile error: Can't find Object or library". I searched for the error and i got many links saying that there will be missing references but when i checked on the reference tab i found no "missing" in any of the reference.

    For further error trace i tried running the same code in different users of the same PC and it worked. For some users the code is running fine but for some users the error occurring.

    I opened the reference tab and clicked OK without changing anything. Now the error stopped coming. So i further checked by copying the code files from TFS before committing the last changes and i got the error again. I compared the code files and found that there are some path difference in the reference files. The code in the TFS is referring the file from system32 but in my pc the reference file found in sysWOW64. So the reference may be added in the 32 bit PC while mine is 64 bit PC.

    Now i got the question that why the VB editor auto detects the reference in some users but fails in some other users when the running PC is same?

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,733

    Re: VB6: “Compile error: Can't find Object or library”

    TFS is for source code management?
    Different users on different computers are working on this project?
    Some computers are 64bit and some others are 32bit?

    I think the last statement can cause problems, because of different versions of controls used on different versions of Windows.

Tags for this Thread

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