|
-
Nov 21st, 2011, 05:12 AM
#1
Thread Starter
Member
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?
-
Nov 21st, 2011, 06:05 AM
#2
Re: Can't Find Project Or Library
 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?
-
Nov 21st, 2011, 06:12 AM
#3
Thread Starter
Member
Re: Can't Find Project Or Library
Error is Can't find project or library,(Microsoft Visual SourceSafe)
-
Nov 21st, 2011, 06:27 AM
#4
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)
-
Nov 21st, 2011, 08:28 AM
#5
Thread Starter
Member
Re: Can't Find Project Or Library
 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?
-
Nov 21st, 2011, 08:49 AM
#6
Re: Can't Find Project Or Library
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.
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.
-
Nov 22nd, 2011, 08:29 AM
#7
Hyperactive Member
Re: Can't Find Project Or Library
Exjames, did you add additional components to your project? Like ... OCX or DLL references?
If your problem is solved, then drag down the Thread Tools and mark your thread as Resolved.
If I helped you solve your problem, inflate some air into my ego by rating my post and adding a comment too.
For notorious issues (elaborate yourself) contact me via PM. I don't answer them in the forums EVER.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|