Virtual Serial Port ActiveX Control - ReadStr Method

The ReadStr method reads a string from virtual serial port input buffer.

BSTR ReadStr(
    void 
);

 
Return Values
The ReadStr function returns the string received from serial port.

Remarks
If virtual serial port was not created, the return value is 0 (zero).

Note, that symbol with "0" code is the sign of line end, so all the data, which are sending after that symbol will be lost. That is why if your data has symbols with "0" code, please, use Write/WriteArray/Read/ReadArray methods.