Home > Software engineering >  Big hand to help explain the function, novice I don't understand, thank you!
Big hand to help explain the function, novice I don't understand, thank you!

Time:10-31

 if (Time & gt; Iner) 
{
MessageBox (" end ");

The fclose (file);
M_pThread - & gt; PostThreadMessage (WM_DESTROY, 0, 0);
If (WAIT_OBJECT_0==WaitForSingleObject (m_pThread - & gt; M_hThread, INFINITE))
{
//3. Remove the UI thread object, only when you set the m_bAutoDelete=FALSE; When the call
The delete m_pThread;
}
The CloseHandle (m_hCom);

return 0;

}

CodePudding user response:

Please help, thank you

CodePudding user response:

The
refer to the original poster czz007007 response:
if (Time & gt; Iner)
{
MessageBox (" end ");

The fclose (file);
M_pThread - & gt; PostThreadMessage (WM_DESTROY, 0, 0);
If (WAIT_OBJECT_0==WaitForSingleObject (m_pThread - & gt; M_hThread, INFINITE))
{
//3. Remove the UI thread object, only when you set the m_bAutoDelete=FALSE; When the call
The delete m_pThread;
}
The CloseHandle (m_hCom);

return 0;

}


If the Time is greater than the Iner
Displays prompt box "end"
Close the file
Send end thread message
If the thread has ended, and release the thread memory
Close the m_hCom handle

CodePudding user response:

"Windows core programming"

CodePudding user response:

refer to the second floor wxhxj0268 response:
Quote: refer to the original poster czz007007 response:

If (Time & gt; Iner)
{
MessageBox (" end ");

The fclose (file);
M_pThread - & gt; PostThreadMessage (WM_DESTROY, 0, 0);
If (WAIT_OBJECT_0==WaitForSingleObject (m_pThread - & gt; M_hThread, INFINITE))
{
//3. Remove the UI thread object, only when you set the m_bAutoDelete=FALSE; When the call
The delete m_pThread;
}
The CloseHandle (m_hCom);

return 0;

}


If the Time is greater than the Iner
Displays prompt box "end"
Close the file
Send end thread message
If the thread has ended, and release the thread memory
Close the m_hCom handle



You thank you thank you!!!!!!!!!!!!
  • Related