Results 1 to 7 of 7

Thread: Can't Find Project Or Library

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2011
    Posts
    34

    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?

  2. #2
    PowerPoster
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    2,579

    Re: Can't Find Project Or Library

    Quote Originally Posted by exjames View Post
    when I copy this project and paste it at another computer, it has this error.
    What is the error code and what it says?



  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2011
    Posts
    34

    Re: Can't Find Project Or Library

    Error is Can't find project or library,(Microsoft Visual SourceSafe)

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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)

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2011
    Posts
    34

    Re: Can't Find Project Or Library

    Quote Originally Posted by si_the_geek View Post
    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?

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    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.

  7. #7
    Hyperactive Member
    Join Date
    Jan 2006
    Location
    Pakistan
    Posts
    388

    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
  •  



Click Here to Expand Forum to Full Width