Re: ReadWord????

Giganews Newsgroups
Subject: Re: ReadWord????
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Fri, 29 Apr 2005

"Filipe" <fili…@silicon.inf.br> wrote in message
news:7E303E61EAC8E240fili…@silicon.inf.br...

> In some points, I must read a word, but the TIdTCPConnection
> only provides methods to reading smallint that is 16-bit, like the
> WORD type.

You can use ReadBuffer() for that:

    var
        w: WORD:

    Client.ReadBuffer(w, SizeOf(w));

Gambit

Replies

In response to

ReadWord???? posted by Filipe on Fri, 29 Apr 2005