Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Convert Fortran Code Pin
CPallini7-Oct-08 23:03
mveCPallini7-Oct-08 23:03 
QuestionYielding Messages.... Pin
Peter Weyzen7-Oct-08 19:23
Peter Weyzen7-Oct-08 19:23 
AnswerRe: Yielding Messages.... Pin
Roger Stoltz7-Oct-08 22:24
Roger Stoltz7-Oct-08 22:24 
GeneralRe: Yielding Messages.... Pin
Peter Weyzen7-Oct-08 22:33
Peter Weyzen7-Oct-08 22:33 
GeneralRe: Yielding Messages.... Pin
Mark Salsbery8-Oct-08 5:55
Mark Salsbery8-Oct-08 5:55 
QuestionThread question Pin
monsieur_jj7-Oct-08 19:19
monsieur_jj7-Oct-08 19:19 
AnswerRe: Thread question Pin
Michael Dunn7-Oct-08 19:37
sitebuilderMichael Dunn7-Oct-08 19:37 
GeneralRe: Thread question Pin
monsieur_jj7-Oct-08 20:05
monsieur_jj7-Oct-08 20:05 
Hi Mike,

This function is being called more than once:

bool CUpdateData::DownloadFile(RMUpdates* prd)
{
	bool result = false;


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

	//DownloadThread((void*)prd);
	Sleep( 100 );
	return result;
}


Now my question is that how many times should I close Handle_Of_Thread_1, lets say all the threads are done doing their job.

Thanks,
Jayjay
GeneralRe: Thread question Pin
Cedric Moonen7-Oct-08 20:12
Cedric Moonen7-Oct-08 20:12 
GeneralRe: Thread question Pin
monsieur_jj7-Oct-08 20:23
monsieur_jj7-Oct-08 20:23 
GeneralRe: Thread question Pin
Cedric Moonen7-Oct-08 20:29
Cedric Moonen7-Oct-08 20:29 
QuestionFunction calling in header file Pin
Davitor7-Oct-08 19:05
Davitor7-Oct-08 19:05 
AnswerRe: Function calling in header file Pin
ThatsAlok7-Oct-08 19:18
ThatsAlok7-Oct-08 19:18 
GeneralRe: Function calling in header file Pin
Davitor7-Oct-08 19:26
Davitor7-Oct-08 19:26 
GeneralRe: Function calling in header file Pin
ThatsAlok7-Oct-08 20:00
ThatsAlok7-Oct-08 20:00 
AnswerRe: Function calling in header file Pin
Cedric Moonen7-Oct-08 20:15
Cedric Moonen7-Oct-08 20:15 
AnswerRe: Function calling in header file Pin
CPallini7-Oct-08 23:06
mveCPallini7-Oct-08 23:06 
AnswerRe: Function calling in header file Pin
Bram van Kampen8-Oct-08 9:03
Bram van Kampen8-Oct-08 9:03 
QuestionPrinter HW Serial Number Pin
Bram van Kampen7-Oct-08 15:04
Bram van Kampen7-Oct-08 15:04 
AnswerRe: Printer HW Serial Number Pin
Garth J Lancaster7-Oct-08 16:14
professionalGarth J Lancaster7-Oct-08 16:14 
AnswerRe: Printer HW Serial Number Pin
Mark Salsbery8-Oct-08 6:18
Mark Salsbery8-Oct-08 6:18 
AnswerRe: Printer HW Serial Number Pin
Mark Salsbery8-Oct-08 6:27
Mark Salsbery8-Oct-08 6:27 
QuestionI get compile error c2440 it tells me cannot convert from void please help Pin
nah13377-Oct-08 9:26
nah13377-Oct-08 9:26 
AnswerRe: I get compile error c2440 it tells me cannot convert from void please help Pin
Cedric Moonen7-Oct-08 20:16
Cedric Moonen7-Oct-08 20:16 
GeneralRe: I get compile error c2440 it tells me cannot convert from void please help Pin
nah13377-Oct-08 22:57
nah13377-Oct-08 22:57 

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.