Jeremy,

In your example, what gets assigned to msg?

Wes

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of [EMAIL PROTECTED]
> Sent: Monday, 18 December 2000 23:04
> To: Multiple recipients of list delphi
> Subject: [DUG]: Best way to load a buffer
> 
> 
> Hi all.
> 
> what is the best way to load a class into a buffer ?
> 
> i.e. I have a Class that I need to add to a buffer to send across 
> a TCP/IP connection.
> 
> I have been doing socket.SendBuf(msg,sizeOf(msg)); but this only 
> sends garbage.
> Am I better to load each of the class items into the buffer char 
> by char then send the buffer ??
> I also tried MOVE() but it had the same effect.
> 
> Cheers, Jeremy Coulter
>  
>  
>  
> 
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to