SerialPort input mode

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a vs2005 oriject converted from vb6 that now use mscomm ocx for serial
prot
i wanna change the mscomm with serialport class
my port was setted in inputmodebinary how to do in serialport ??
Thanks Best regards!!
 
Hi,

Use:
Public Function Read(ByVal buffer() As Byte, ByVal offset As Integer, ByVal
count As Integer) As Integer

Public Sub Write(ByVal buffer() As Byte, ByVal offset As Integer, ByVal
count As Integer)

Dick
--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004.
See www.hardandsoftware.net for details and contact information.
 
Back
Top