BCB Beginner

Giganews Newsgroups
Subject: BCB Beginner
Posted by:  Bill Holt (bi…@itsound.demon.co.uk)
Date: Wed, 4 Feb 2004

I'm still having trouble understanding the Delphi examples.

In my chat program the clients can connect and exchange messages with the
server OK. But I'm stuck because I don't really understand how Indy's list
of client threads relates to the two lists of clients that I am maintaining.

What is wrong with the following, which I've 'copied' straight from one of
the Delphi examples?

TList *List1 = (TList*)(tcpServer->Threads->LockList());
AnsiString Msg;
  for (int X = 0; X < List1->Count; X++)