Lohchj
December 7th, 1999, 01:02 AM
Does anyone know how to send binary data through the serial port? Can i have a sample of the source code? Thanks!
|
Click to See Complete Forum and Search --> : Sending Binary data Lohchj December 7th, 1999, 01:02 AM Does anyone know how to send binary data through the serial port? Can i have a sample of the source code? Thanks! Ruth Glushkin December 7th, 1999, 01:16 AM I don't know which version of VB you use. If it 5.0 or 6.0, everything you need to do, just set MSComm1.InputMode = 1, and after that define array of Byte, and send it, something like that: Dim bOutput(0 To 10) As Byte bOutput(0) = 1 MSComm1.Output = bOutput But if you use VB 4 or less, you'd better use Win API functions like CreateFile(), WriteFile(), ReadFile(). Good Luck! Lohchj December 7th, 1999, 02:18 AM Thanks a lot!!! Ur code certainly works!!! And thanks for the prompt reply!!! Really appreciated!!! Thanks again!!! codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |