View: MFC creer une Thread

  1. 11 years ago by moifort
    1. //Declaration
    2. UINT ThreadRecherche( LPVOID param );
    3.  
    4. // Lancement du thread de traitement
    5. CWinThread* pThread;   
    6. pThread = AfxBeginThread((AFX_THREADPROC)ThreadRecherche,(LPVOID)this, THREAD_PRIORITY_NORMAL|THREAD_TERMINATE);
    7.  
    8.  
    9. // Fonction thread
    10. UINT ThreadRecherche(LPVOID param )
    11. {
    12.         return 0;
    13. }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/386"></script>

0 comment about "MFC creer une Thread"