Solved

Compile error: Can't find project or library

Posted on 2000-04-03
8
1,324 Views
Last Modified: 2008-03-17
For VB6.0 enterprise, Win95

VB prompt "Compile error: Can't find project or library.", when I run my program. Some other program work/compile fine.

What library is using for Chr(10), Trim(string), LCase(string), etc... ?

Please advise.
0
Comment
Question by:pkimk
8 Comments
 

Expert Comment

by:pinshah
ID: 2679574
Check in the Project References if U can see "Missing ... " 
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2679584
Yeah!
<as in the prison cell scene in "Trading Places">
0
 

Expert Comment

by:pinshah
ID: 2679609
Check in the Project References if U can see "Missing ... " 
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 70

Expert Comment

by:Éric Moreau
ID: 2679811
Put "VBA." in front of these functions!
0
 

Expert Comment

by:msdnman
ID: 2680319
Sometimes restarting VB or running RegClean can take care of some of these types of compile errors. The functions that you mention are intrinsic to VB and should not need to be prefaced with VBA. I've also found that an occasional re-install of VB will help as well.
0
 

Expert Comment

by:chsoh
ID: 2683008
hi, pkimk,
see you again,
as what I mention to you in others question,
reinstall you VB since your current VB already corrupted.
0
 
LVL 10

Accepted Solution

by:
caraf_g earned 50 total points
ID: 2683047
Whoa, wait a sec. Reinstall VB? Perhaps, but probably not necessary. Let's try the less drastic measures first.

It doesn't matter *what* DLL is Missing from your reference; if you have *any* Missing references it is possible to get these types of errors on the most basic VB functions. Sorting out the missing references will usually get rid of the problem.

The question is, why have the references become "Missing". Three possibilities spring to mind.

1) The "missing" component is one of your own. In that case, you've probably recompiled it without binary compatibility. In that case, simply unchecking the component from Project - References, close the window, open it again, find the reference again and checking it will do the trick.

2) The "missing" component is not one of your own. In that case, did you install new software on your PC? This might overwrite versions of DLLs that you're using in your VB project. You may try the same approach as in 1). You might be lucky.

3) The "missing" component is not one of your own. Did you uninstall software from your PC? This may inadvertently have uninstalled one of the DLLs you're using. Reinstalling the software may sort that problem.

If all the above approaches fail, *then* you may have to consider a more drastic approach....
0
 

Author Comment

by:pkimk
ID: 2686657
The "missing" component is not one of mine. I simply unchecking the component from Project - References, save it, close the window, open it again, Bingo.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question