Description: VC++ use the event object implements the thread synchronization, sample code to achieve two major functions: 1, do not use the event synchronization start two threads to different character to the edit box for without the use of synchronization object, possible output characters than the synchronization object is used less phenomenon, this is because the threads operate on the resources at the same time results. 2, the use of event synchronization start two threads to different character to the edit box, learning VC++ programming source code, a good reference.
To Search:
File list (Check if you may need any files):
EventSynch.aps
EventSynch.clw
EventSynch.cpp
EventSynch.dsp
EventSynch.dsw
EventSynch.h
EventSynch.rc
EventSynchDlg.cpp
EventSynchDlg.h
res
resource.h
...\EventSynch.ico
...\EventSynch.rc2
StdAfx.cpp
StdAfx.h