Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - readcomm() read the contents of the communication port http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ReadComm()             Read the contents of the communication port
--------------------------------------------------------------------------------

   Syntax:              ReadComm( <nIdComm>, @<cBuffer> )  --> <nBytesRead>

   Parameters:

   <nIdComm>            A numeric identifier for that opened device.
                        0 if there was an error.

   <cBuffer>            A string variable supplied by reference
                        where ReadComm() will place the read bytes.

                        The length of the initial supplied value
                        specifies the wished number of bytes to be read.

                        You may use, i.e., Space( ... ) to initialize
                        this buffer.

   Returns:

   <nBytesRead>         The number of bytes read. 0 if there was
                        an error. Use GetCommError() to determine the
                        cause of the error.

   Sample:              SAMPLES\\TestComm.prg

   Source code:         SOURCE\\WINAPI\\Comm.c

   See also:            OpenComm() WriteComm() CloseComm()


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson