Results 1 to 3 of 3

Thread: [RESOLVED] HIDComm Doubts

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    100

    Resolved [RESOLVED] HIDComm Doubts

    Hi ,

    Anyone know what does this code says?I'm a newbie in this area.Thanks for your help in advance.

    Private Sub Timer5_Timer()
    Dim buffer() As Byte
    ReDim buffer(8)
    buffer(0) = 2 'to read
    buffer(1) = 20
    buffer(2) = 6
    buffer(3) = 0
    HIDComm1.WriteTo buffer, 8
    buffer() = HIDComm1.ReadFrom(8)
    If buffer(4) = 2 Then 'Checks if character is selected.
    Label1(i).ForeColor = vbBlack
    ShowLetter (i)
    End If

    End Sub

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: HIDComm Doubts

    HIDComm is evidently a control you're using. We'd need to see the code for WriteToBuffer and ReadFrom (at least - maybe more than that) to really see what's happening.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    100

    Re: HIDComm Doubts

    Thanks for your solution...I've resolved the problem.

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