Click here to Skip to main content
15,886,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmap button Pin
Hamid_RT1-Dec-07 4:44
Hamid_RT1-Dec-07 4:44 
QuestionProblem in capturing the enter event of an edit control. Pin
chandu0041-Dec-07 0:50
chandu0041-Dec-07 0:50 
AnswerRe: Problem in capturing the enter event of an edit control. Pin
Jijo.Raj2-Dec-07 0:59
Jijo.Raj2-Dec-07 0:59 
QuestionNo CPen? Pin
Haakon S.1-Dec-07 0:29
Haakon S.1-Dec-07 0:29 
AnswerRe: No CPen? Pin
CPallini1-Dec-07 0:44
mveCPallini1-Dec-07 0:44 
GeneralRe: No CPen? Pin
Haakon S.1-Dec-07 0:56
Haakon S.1-Dec-07 0:56 
GeneralRe: No CPen? Pin
Haakon S.1-Dec-07 1:38
Haakon S.1-Dec-07 1:38 
QuestionThreads Pin
krishna Vuppala30-Nov-07 23:30
krishna Vuppala30-Nov-07 23:30 
How to use TerminateThread() function in program.
iam used like this but the thread is not stopped.

<br />
CWinThread* m_pNuThread;<br />
void CThrdDlg::OnButton2() <br />
{<br />
	// TODO: Add your control notification handler code here<br />
	CString string;<br />
	m_NuStart.GetWindowText(string);<br />
<br />
	<br />
<br />
	if(string =="START")<br />
	{	<br />
		m_pNuThread = AfxBeginThread(NuThread, this);<br />
		m_NuStart.SetWindowText("STOP");<br />
	}<br />
	else<br />
	{	<br />
	<br />
		TerminateThread(m_pNuThread, 0);<br />
		m_NuStart.SetWindowText("START");<br />
	<br />
	}<br />
	<br />
	<br />
}<br />
<br />
<br />
UINT NuThread(LPVOID lParam)<br />
{	<br />
	CThrdDlg *dlg = (CThrdDlg*)lParam;<br />
	//int i=0;<br />
	CString str;<br />
	for(int i=0;i<=100;i++)<br />
	{<br />
		str.Format("%d",i);<br />
		dlg->m_NuEBox.SetWindowText(str);<br />
		Sleep(200);<br />
		if(i == 100)<br />
			i=0;<br />
	}<br />
	return 0;<br />
}<br />


kp.Vuppala
AnswerRe: Threads Pin
CPallini1-Dec-07 0:00
mveCPallini1-Dec-07 0:00 
GeneralRe: Threads Pin
krishna Vuppala1-Dec-07 0:46
krishna Vuppala1-Dec-07 0:46 
GeneralRe: Threads Pin
CPallini1-Dec-07 6:55
mveCPallini1-Dec-07 6:55 
GeneralRe: Threads Pin
Hamid_RT1-Dec-07 8:08
Hamid_RT1-Dec-07 8:08 
Questionabout unary_function Pin
George_George30-Nov-07 22:52
George_George30-Nov-07 22:52 
AnswerRe: about unary_function Pin
CPallini1-Dec-07 0:43
mveCPallini1-Dec-07 0:43 
Questioni have some question about binary stream file. Pin
buffering8330-Nov-07 22:07
buffering8330-Nov-07 22:07 
QuestionRe: i have some question about binary stream file. Pin
CPallini30-Nov-07 23:41
mveCPallini30-Nov-07 23:41 
AnswerRe: i have some question about binary stream file. Pin
buffering831-Dec-07 0:53
buffering831-Dec-07 0:53 
GeneralRe: i have some question about binary stream file. Pin
CPallini1-Dec-07 2:53
mveCPallini1-Dec-07 2:53 
GeneralRe: i have some question about binary stream file. Pin
buffering831-Dec-07 3:02
buffering831-Dec-07 3:02 
GeneralRe: i have some question about binary stream file. Pin
CPallini1-Dec-07 6:47
mveCPallini1-Dec-07 6:47 
GeneralRe: i have some question about binary stream file. Pin
buffering831-Dec-07 16:23
buffering831-Dec-07 16:23 
Questiontech to dock a CListCtrl in the client area of SDI mainframe Pin
followait30-Nov-07 19:15
followait30-Nov-07 19:15 
QuestionRe: tech to dock a CListCtrl in the client area of SDI mainframe Pin
bob169721-Dec-07 14:17
bob169721-Dec-07 14:17 
AnswerRe: tech to dock a CListCtrl in the client area of SDI mainframe Pin
followait1-Dec-07 14:44
followait1-Dec-07 14:44 
Questionhow can i open a file and search a specific name on it Pin
maryam_s30-Nov-07 19:05
maryam_s30-Nov-07 19:05 

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.