Click here to Skip to main content
15,921,959 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with BEGIN_EVENTSINK_MAP Pin
Eldon Zacek18-Oct-05 17:53
Eldon Zacek18-Oct-05 17:53 
AnswerRe: Problem with BEGIN_EVENTSINK_MAP Pin
Mircea Puiu18-Oct-05 21:47
Mircea Puiu18-Oct-05 21:47 
AnswerRe: Problem with BEGIN_EVENTSINK_MAP Pin
Eldon Zacek19-Oct-05 1:29
Eldon Zacek19-Oct-05 1:29 
QuestionDrawText is too slow. Pin
William.Wang18-Oct-05 17:26
William.Wang18-Oct-05 17:26 
AnswerRe: DrawText is too slow. Pin
alex.barylski18-Oct-05 18:10
alex.barylski18-Oct-05 18:10 
QuestionRe: DrawText is too slow. Pin
William.Wang18-Oct-05 19:41
William.Wang18-Oct-05 19:41 
AnswerRe: DrawText is too slow. Pin
doctorpi18-Oct-05 23:18
doctorpi18-Oct-05 23:18 
Questionmultithread Pin
jojojojoj18-Oct-05 17:08
jojojojoj18-Oct-05 17:08 
hi all, i am making an multithread client that connects to differents servers using differents threads.
in the main window the user select the numbers of connections that the program will start.
To make make this i created the threads inside a loop like this:

GetDlgItemText(IDC_SIMULTANEOS, n);
int a = _ttoi(n.GetBuffer(n.GetLength()));

for(LONG i=0; i<a; i++)="" {

="" m_servername.gettext(i,="" str);

...
....

="" pthread-="">ResumeThread();
}

The program creates succefully the number of connections to the server specified in a, for example it creates 2 threads.

Now, i need to do read operations on the different threads created.

I can see theat write and read operations works only on the last process(thread, connection) created.(sniffing packets i

realize that the data pushed are in the higher port number of the two established connections on my local machine to the

second server on the list).

How can i identify the different threads created in the loop and make write and read operations on them??
Thanx in advance.
AnswerRe: multithread Pin
Mircea Puiu18-Oct-05 21:52
Mircea Puiu18-Oct-05 21:52 
AnswerRe: multithread Pin
vikas amin19-Oct-05 1:38
vikas amin19-Oct-05 1:38 
QuestionTrouble with Winsock client connection Pin
mad_dan6418-Oct-05 16:08
mad_dan6418-Oct-05 16:08 
AnswerRe: Trouble with Winsock client connection Pin
vikas amin19-Oct-05 1:36
vikas amin19-Oct-05 1:36 
QuestionHow to read unicode ini file on win98? Pin
iLoveM18-Oct-05 15:36
iLoveM18-Oct-05 15:36 
Questionsocket copy Pin
Shotgun18-Oct-05 14:29
Shotgun18-Oct-05 14:29 
AnswerRe: socket copy Pin
l a u r e n18-Oct-05 17:52
l a u r e n18-Oct-05 17:52 
AnswerRe: socket copy Pin
sunit518-Oct-05 20:32
sunit518-Oct-05 20:32 
GeneralRe: socket copy Pin
vikas amin19-Oct-05 1:33
vikas amin19-Oct-05 1:33 
Questionprocessing ESC key Pin
Ann6618-Oct-05 14:06
sussAnn6618-Oct-05 14:06 
AnswerRe: processing ESC key Pin
Christian Graus18-Oct-05 14:23
protectorChristian Graus18-Oct-05 14:23 
QuestionRe: processing ESC key Pin
David Crow19-Oct-05 3:40
David Crow19-Oct-05 3:40 
QuestionCPaintDC resource Pin
LighthouseJ18-Oct-05 13:30
LighthouseJ18-Oct-05 13:30 
AnswerRe: CPaintDC resource Pin
Christian Graus18-Oct-05 13:36
protectorChristian Graus18-Oct-05 13:36 
GeneralRe: CPaintDC resource Pin
LighthouseJ18-Oct-05 13:53
LighthouseJ18-Oct-05 13:53 
GeneralRe: CPaintDC resource Pin
Christian Graus18-Oct-05 13:57
protectorChristian Graus18-Oct-05 13:57 
GeneralRe: CPaintDC resource Pin
LighthouseJ18-Oct-05 14:22
LighthouseJ18-Oct-05 14:22 

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.