Click here to Skip to main content
15,898,995 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CListCtrl Please Help ! Pin
Bravoone_200613-Aug-06 23:11
Bravoone_200613-Aug-06 23:11 
GeneralRe: CListCtrl Please Help ! Pin
Hamid_RT14-Aug-06 1:19
Hamid_RT14-Aug-06 1:19 
AnswerRe: CListCtrl Please Help ! Pin
prasad_som13-Aug-06 23:51
prasad_som13-Aug-06 23:51 
QuestionUninstall function Pin
cv_k3n13-Aug-06 19:38
cv_k3n13-Aug-06 19:38 
AnswerRe: Uninstall function Pin
Hamid_RT18-Aug-06 8:16
Hamid_RT18-Aug-06 8:16 
QuestionWorking Threads Pin
cv_k3n13-Aug-06 19:37
cv_k3n13-Aug-06 19:37 
AnswerRe: Working Threads Pin
prasad_som13-Aug-06 19:52
prasad_som13-Aug-06 19:52 
GeneralRe: Working Threads Pin
cv_k3n15-Aug-06 23:21
cv_k3n15-Aug-06 23:21 
Thanks.. I was reading throught this article and i came upon a small problem. It's the part where it teaches you how to shut down the thread: http://www.codeproject.com/threads/usingworkerthreads.asp#Shutting%20down%20a%20thread%20from%20a%20view%20or%20main%20frame

The problem is this function: ' WaitForSingleObject(myWorkerThread->m_hThread, INFINITE); '

This function will wait for the thread to terminate before proceeding. However, it seems like my thread doens't ever terminates although in actual fact it does. Why is this so? Am I missing an output signal saying that my thread is done? BTW, i used a very simple 'for' loop in my thread, Just like in the example. It looks something like this:

m_progress.SetRange(0,100);<br />
	for(x = 0; running && x < m_num; x++)<br />
	{<br />
		count++;<br />
		counter = (float) count/m_num;<br />
		m_progress.SetPos((float)counter*100);<br />
		//testFunction1(count,count);<br />
	}<br />
	<br />
	m_progress.SetPos(0);<br />
    running = FALSE;

AnswerRe: Working Threads Pin
Hamid_RT13-Aug-06 19:55
Hamid_RT13-Aug-06 19:55 
AnswerRe: Working Threads Pin
Hamid_RT13-Aug-06 22:08
Hamid_RT13-Aug-06 22:08 
GeneralRe: Working Threads Pin
cv_k3n15-Aug-06 2:19
cv_k3n15-Aug-06 2:19 
GeneralRe: Working Threads Pin
Hamid_RT15-Aug-06 2:56
Hamid_RT15-Aug-06 2:56 
GeneralRe: Working Threads Pin
cv_k3n15-Aug-06 3:20
cv_k3n15-Aug-06 3:20 
GeneralRe: Working Threads Pin
Hamid_RT15-Aug-06 7:57
Hamid_RT15-Aug-06 7:57 
GeneralRe: Working Threads Pin
cv_k3n15-Aug-06 21:39
cv_k3n15-Aug-06 21:39 
GeneralRe: Working Threads Pin
Hamid_RT15-Aug-06 23:54
Hamid_RT15-Aug-06 23:54 
GeneralRe: Working Threads Pin
cv_k3n16-Aug-06 2:04
cv_k3n16-Aug-06 2:04 
GeneralRe: Working Threads Pin
Hamid_RT16-Aug-06 4:33
Hamid_RT16-Aug-06 4:33 
Questionchecksum [modified] Pin
thathvamsi13-Aug-06 18:38
thathvamsi13-Aug-06 18:38 
AnswerRe: checksum Pin
tanvon malik13-Aug-06 18:54
tanvon malik13-Aug-06 18:54 
GeneralRe: checksum Pin
Steve Echols13-Aug-06 19:23
Steve Echols13-Aug-06 19:23 
AnswerRe: checksum Pin
Michael Dunn13-Aug-06 19:29
sitebuilderMichael Dunn13-Aug-06 19:29 
GeneralRe: checksum Pin
thathvamsi13-Aug-06 19:45
thathvamsi13-Aug-06 19:45 
GeneralRe: checksum -works now Pin
thathvamsi14-Aug-06 16:26
thathvamsi14-Aug-06 16:26 
AnswerRe: checksum Pin
Archyami13-Aug-06 20:33
Archyami13-Aug-06 20:33 

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.