Click here to Skip to main content
15,904,655 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ClipBoard Pin
Rajesh R Subramanian28-Aug-08 21:21
professionalRajesh R Subramanian28-Aug-08 21:21 
GeneralRe: ClipBoard Pin
Cvaji28-Aug-08 20:55
Cvaji28-Aug-08 20:55 
QuestionRadio Button style Pin
ani_ikram28-Aug-08 20:38
ani_ikram28-Aug-08 20:38 
AnswerRe: Radio Button style Pin
Cvaji28-Aug-08 20:52
Cvaji28-Aug-08 20:52 
GeneralRe: Radio Button style Pin
ani_ikram28-Aug-08 21:09
ani_ikram28-Aug-08 21:09 
GeneralRe: Radio Button style Pin
Cvaji28-Aug-08 21:56
Cvaji28-Aug-08 21:56 
GeneralRe: Radio Button style Pin
Mark Salsbery29-Aug-08 8:54
Mark Salsbery29-Aug-08 8:54 
Questioncreate a plane thru 3 points (c++) Pin
raesa28-Aug-08 20:05
raesa28-Aug-08 20:05 
GeneralRe: create a plane thru 3 points (c++) Pin
Cvaji28-Aug-08 20:35
Cvaji28-Aug-08 20:35 
GeneralRe: create a plane thru 3 points (c++) Pin
raesa28-Aug-08 20:43
raesa28-Aug-08 20:43 
AnswerRe: create a plane thru 3 points (c++) Pin
Jijo.Raj28-Aug-08 20:41
Jijo.Raj28-Aug-08 20:41 
GeneralRe: create a plane thru 3 points (c++) Pin
raesa28-Aug-08 20:49
raesa28-Aug-08 20:49 
GeneralRe: create a plane thru 3 points (c++) Pin
oobimoo28-Aug-08 21:15
oobimoo28-Aug-08 21:15 
GeneralRe: create a plane thru 3 points (c++) Pin
raesa28-Aug-08 21:23
raesa28-Aug-08 21:23 
QuestionHow to extract a string between two delimiters ? Pin
kapardhi28-Aug-08 18:56
kapardhi28-Aug-08 18:56 
AnswerRe: How to extract a string between two delimiters ? Pin
Nibu babu thomas28-Aug-08 19:06
Nibu babu thomas28-Aug-08 19:06 
AnswerRe: How to extract a string between two delimiters ? Pin
Jijo.Raj28-Aug-08 19:22
Jijo.Raj28-Aug-08 19:22 
AnswerRe: How to extract a string between two delimiters ? Pin
sashoalm28-Aug-08 21:22
sashoalm28-Aug-08 21:22 
QuestionHow to send a 'string' to a port ? Pin
AprNgp28-Aug-08 18:51
AprNgp28-Aug-08 18:51 
AnswerRe: How to send a 'string' to a port ? Pin
Rajesh R Subramanian28-Aug-08 19:24
professionalRajesh R Subramanian28-Aug-08 19:24 
GeneralRe: How to send a 'string' to a port ? Pin
AprNgp28-Aug-08 19:29
AprNgp28-Aug-08 19:29 
GeneralRe: How to send a 'string' to a port ? Pin
AprNgp28-Aug-08 19:35
AprNgp28-Aug-08 19:35 
GeneralRe: How to send a 'string' to a port ? Pin
Rajesh R Subramanian28-Aug-08 19:48
professionalRajesh R Subramanian28-Aug-08 19:48 
QuestionCreateThread Function question Pin
monsieur_jj28-Aug-08 16:16
monsieur_jj28-Aug-08 16:16 
AnswerRe: CreateThread Function question Pin
Jijo.Raj28-Aug-08 18:15
Jijo.Raj28-Aug-08 18:15 
monsieur_jj wrote:
HANDLE Array_Of_Thread_Handles[3]; // Aray to store thread handles

Handle_Of_Thread_1 = CreateThread( NULL, 0, Thread_no_1, ((void*)prd), 0, NULL);
if ( Handle_Of_Thread_1 == NULL) ExitProcess(Data_Of_Thread_1);

// Store Thread handles in Array of Thread Handles as per the requirement of WaitForMultipleObjects()
Array_Of_Thread_Handles[0] = Handle_Of_Thread_1;



Here you're creating a uninitialized handle array, and then setting only the first member. The rest handles will contain junk values.


monsieur_jj wrote:
// Wait until all threads have terminated.
WaitForMultipleObjects( 3, Array_Of_Thread_Handles, TRUE, INFINITE);


And here you are waiting for all handles include junk handle values which will finally result in error.


monsieur_jj wrote:
Now what I would like to know is that while the first thread is downloading the first update will it go to the next update and download it?


You've just created a single thread.

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

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.