Can't Find Project Or Library
Hi guys,
I have this calculator software working on my computer. It is working fine. However, when I copy this project and paste it at another computer, it has this error.
This error occur whenever I try to type numbers using my keyboard. I don't know whats wrong. Here is my code for keypress.
Code:
Private Sub Form_KeyPress(KeyAscii As Integer)
Dim char As String
char = Chr$(KeyAscii)
KeyAscii = Asc(char)
If (KeyAscii = 8) Then
If (Len(text1.Text) > 1) Then
text1.Text = Left(text1.Text, Len(text1.Text) - 1)
Else
text1.Text = "0"
End If
End If
If (KeyAscii = 46) Then
Me.shiftPos
End If
If (KeyAscii > 46) And (KeyAscii < 58) Then
If (text1.Text = 0) Then
If (Shift = True) Then
text1.Text = "0." & Chr(KeyAscii)
Shift = False
Else
text1.Text = Chr(KeyAscii)
End If
Else
text1.Text = text1.Text & Chr(KeyAscii)
End If
End If
End Sub
How to solve this problem?
Re: Can't Find Project Or Library
Quote:
Originally Posted by
exjames
when I copy this project and paste it at another computer, it has this error.
What is the error code and what it says?
Re: Can't Find Project Or Library
Error is Can't find project or library,(Microsoft Visual SourceSafe)
Re: Can't Find Project Or Library
What do you mean by "I copy this project"?
If you mean the executable, create an installer rather than doing a copy and paste.
If you mean the code files, which line of code is highlighted? Are any of your references marked as "Missing:"?
There are several potential ways to fix it (including an explanation of "Missing") listed in the article What does this error mean, and how do I fix it? from our Classic VB FAQs (in the FAQ forum)
Re: Can't Find Project Or Library
Quote:
Originally Posted by
si_the_geek
What do you mean by "I copy this project"?
If you mean the executable, create an installer rather than doing a copy and paste.
If you mean the code files, which line of code is highlighted? Are any of your references marked as "Missing:"?
There are several potential ways to fix it (including an explanation of "Missing") listed in the article
What does this error mean, and how do I fix it? from our
Classic VB FAQs (in the FAQ forum)
I archieve the whole project and extract it into another computer. I think it has something to do with the reference or component in that computer which is not activated that it cannot recognize the functions?
Re: Can't Find Project Or Library
Quote:
I archieve the whole project and extract it into another computer.
That only tells us what you meant by copy+paste (which is easy to guess), not what you mean by project.
I explicitly mentioned the two most likely possibilities.
Quote:
I think it has something to do with the reference or component in that computer which is not activated that it cannot recognize the functions?
Basically yes, and I gave advice on how to solve it - depending on what you meant by project.
Re: Can't Find Project Or Library
Exjames, did you add additional components to your project? Like ... OCX or DLL references?