Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCSV file into Excel Sheet Pin
KKR21-Nov-03 0:42
KKR21-Nov-03 0:42 
GeneralRe: CSV file into Excel Sheet Pin
Adam Gritt21-Nov-03 3:15
Adam Gritt21-Nov-03 3:15 
GeneralRe: CSV file into Excel Sheet Pin
Peter Molnar21-Nov-03 9:32
Peter Molnar21-Nov-03 9:32 
QuestionFile's physical address?? Pin
andrea_rizzini@yahoo.co.uk21-Nov-03 0:25
andrea_rizzini@yahoo.co.uk21-Nov-03 0:25 
AnswerRe: File's physical address?? Pin
Peter Molnar21-Nov-03 9:31
Peter Molnar21-Nov-03 9:31 
GeneralRe: File's physical address?? Pin
andrea_rizzini@yahoo.co.uk22-Nov-03 2:25
andrea_rizzini@yahoo.co.uk22-Nov-03 2:25 
GeneralRe: File's physical address?? Pin
фил27-Nov-03 5:48
фил27-Nov-03 5:48 
General'Assigning' Clients from Threads so API can send to specific Client. Pin
Roland_198020-Nov-03 23:48
Roland_198020-Nov-03 23:48 
Hi,

Maybe this is a stupid question, but I'm a rookie Hmmm | :| .

I'm working on a Chat-Server and got it working with threads;


<br />
void __fastcall TMain::ServerSocketGetThread(TObject *Sender,<br />
      TServerClientWinSocket *ClientSocket, TServerClientThread *&SocketThread)<br />
{<br />
  // New connection -> new Thread...<br />
  SocketThread = new TMyServerThread(false, ClientSocket);<br />
}<br />
<br />
// --<br />
<br />
void __fastcall TMyServerThread::ClientExecute(void) <br />
{<br />
   // make sure connection is active...<br />
   while (!Terminated && ClientSocket->Connected)<br />
   {<br />
      try<br />
      {<br />
         // Now, use TWinSocketStream to read or write information<br />
         // over a blocking socket connection...<br />
         TWinSocketStream *pStream = new TWinSocketStream(ClientSocket, CLIENTWAITTIME);<br />
<br />
         try<br />
         {<br />
         etc.<br />



...but now I want to 'assign' each incoming Client... so like in a list. Also want to show all connected Clients in a ListView.

I know how to send text/a buffer in a thread, but how can I send to a specific(assigned) Client from the 'Main' form/api?!


Am a bit lost Sigh | :sigh: .

Roland(BE).
GeneralRe: 'Assigning' Clients from Threads so API can send to specific Client. Pin
l a u r e n21-Nov-03 18:58
l a u r e n21-Nov-03 18:58 
Generalrounding a float Pin
Jerome Conus20-Nov-03 23:47
Jerome Conus20-Nov-03 23:47 
GeneralRe: rounding a float Pin
Ryan Roberts20-Nov-03 23:52
Ryan Roberts20-Nov-03 23:52 
GeneralRe: rounding a float Pin
Jerome Conus20-Nov-03 23:57
Jerome Conus20-Nov-03 23:57 
GeneralRe: rounding a float Pin
Ryan Roberts21-Nov-03 0:02
Ryan Roberts21-Nov-03 0:02 
GeneralRe: rounding a float Pin
Jerome Conus21-Nov-03 0:54
Jerome Conus21-Nov-03 0:54 
GeneralRe: rounding a float Pin
Roger Allen21-Nov-03 1:19
Roger Allen21-Nov-03 1:19 
GeneralRe: rounding a float Pin
Ryan Roberts21-Nov-03 3:13
Ryan Roberts21-Nov-03 3:13 
GeneralRe: rounding a float Pin
jhwurmbach21-Nov-03 1:22
jhwurmbach21-Nov-03 1:22 
GeneralRe: rounding a float Pin
Orhun Birsoy21-Nov-03 8:58
Orhun Birsoy21-Nov-03 8:58 
GeneralQueryPerformanceCounter() Pin
styve20-Nov-03 23:46
styve20-Nov-03 23:46 
GeneralRe: QueryPerformanceCounter() Pin
Mike Dimmick21-Nov-03 3:09
Mike Dimmick21-Nov-03 3:09 
GeneralSend Message Question Pin
chadell20-Nov-03 23:15
chadell20-Nov-03 23:15 
GeneralRe: Send Message Question Pin
Prakash Nadar20-Nov-03 23:34
Prakash Nadar20-Nov-03 23:34 
GeneralRe: Send Message Question Pin
chadell20-Nov-03 23:52
chadell20-Nov-03 23:52 
QuestionHow to change the CEditView Font? Pin
Brind20-Nov-03 22:45
Brind20-Nov-03 22:45 
AnswerRe: How to change the CEditView Font? Pin
Prakash Nadar20-Nov-03 23:31
Prakash Nadar20-Nov-03 23:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.