|
-
Jun 30th, 2006, 12:10 AM
#1
Thread Starter
Lively Member
[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
-
Jul 3rd, 2006, 01:12 PM
#2
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
-
Jul 5th, 2006, 03:09 AM
#3
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|