//Declaration
static UINT Thread(LPVOID pParam);
//Definition
UINT Thread(LPVOID pParam)
{
//Thread Part
while( ((GUIView*)pParam)->Thread_B )
{
//Time delay
Sleep(100);
//Processing
((GUIView*)pParam)->DoProcessing();
}
return 0;
}
//Thread Begin
void GUIView::BegainThread()
{
Thread_B = true;
::AfxBeginThread(Thread, this);
}
9/08/2012
Making thread on MFC (example source code)
Simple source code
Subscribe to:
Posts (Atom)
-
Contents What is a D-U-N-S Number? Prerequisites — Documents to Prepare Go to the D&B Application ...
-
C · Python · Linking Two acronyms one letter apart, describing promises made at two different moments. An API is what you agree t...
-
AMD GPU Programming Primer Threads · Waves · Memory · Tile Distribution · Vector Loads · MFMA ...
-
Python · Type hints def sensor_id(sensor: Sensor | int | None) -> int has three bars in one signature and looks like bit arit...
-
C · Preprocessor C forgets the name of every field the moment it finishes compiling. The X-macro is how a C programmer gets those...
-
ð FREE License Plate Recognition API - No Credit Card Required! Want to try ANPR (Automatic Number Plate Recognition) / ALPR (Automatic L...
-
MareArts ANPR is a license-plate recognition app for iOS and Android, with a web viewer and a desktop viewer on the same accoun...
-
This is data acquisition source code of LMS511(SICK co.) Source code is made by MFC(vs 2008). The sensor is communicated by TCP/IP. ...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
This is advanced from " http://feelmare.blogspot.kr/2011/08/camera-calibration-using-pattern-image.html " When you run the c...