SerialPort input mode

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!!
 
D

Dick Grier

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top