944,196 Members | Top Members by Rank

Ad:
Nov 9th, 2006
0

source for LED using parallel port codes

Expand Post »
Hi everyone. Hope you guys can help me. Attached below are VB6 codes for a hand phone to call to a modem. When the action is executed, a message box will pop out ‘Ring Ring’. I just want to know is there anyone out there have the codes for SMS where when the action is executed, a message box will pop out.

On the other hand, I also need some simple codes (VB6) for 8 LEDs lights for parallel ports.


Thanks and appreciate for you guys help.

Regards
yanz

Below is the coding for the calling with the MsgBox"Ring Ring"
Private Sub Form_Load()
' Buffer to hold input string
Dim Instring As String
' Use COM1.
MSComm1.CommPort = 1
' 9600 baud, no parity, 8 data, and 1 stop bit.
MSComm1.Settings = "9600,N,8,1"
' Tell the control to read entire buffer when Input
' is used.
MSComm1.InputLen = 0
' Open the port.
MSComm1.PortOpen = True

' Send the attention command to the modem.
'MSComm1.Output = "AT" + Chr$(13)
' Wait for data to come back to the serial port.

Do
DoEvents
Loop Until MSComm1.InBufferCount >= 2
' Read the "OK" response data in the serial port.
Instring = MSComm1.Input
' Close the serial port.
MSComm1.PortOpen = False

End Sub

Private Sub MsComm1_OnComm()

Select Case MSComm1.CommEvent
Case comEvRing 'Value 6
MsgBox "Ring Ring"
Case Else
MsgBox "Don't know what event."
End Select
End Sub

Private Sub Form_a()
MSComm1.PortOpen = False
End Sub
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
yanz is offline Offline
10 posts
since Oct 2006
Nov 17th, 2006
0

Re: source for LED using parallel port codes

I don't have any help for your first problem, but go to http://www.geekhideout.com/iodll.shtml for a simple port IO solution. I've used it in a number of computer-to-realworld interface projects with great results. I've also used it in just about all Windows OS's from Win95 up though XP Pro. I even used it with a home-made 8255 PPI ISA card with no problems.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dtbradio is offline Offline
13 posts
since Nov 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Seriusly need help!
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Question in Visual Basic 6.0





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC