Read Method in Serial Port ActiveX Control

The Read method reads data from serial port input buffer.

LONG Read(
  BYTE* Buffer , // data buffer
  LONG* Count // number of bytes to read
);

Parameters

Buffer     [out] Pointer to the buffer that receives the data read from the serial port.   Count     [in] Pointer to number of bytes to be read from the port.

Return Values   The Read method returns the number of bytes received from serial port.

Remarks   If serial port does not exist, the return value is 0 (zero).


See also

Write method, WriteStr method, ReadStr method, ReadVariant method, WriteVariant method