Making thread on MFC (example source code)

Simple source code

//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);
}

My Copyright

//////////////////////////////////////////////////////////////////////////////////////////////
// Made by J.H.KIM, 2012.12.24 / feelmare@daum.net, feelmare@gmail.com  //
// My blog : http://feelmare.blogspot.com                                                 //
// My Lab : VISLAB(http://me.pusan.ac.kr)                                                //
// My Institute : Realhub RnD Cneter(http://www.realhub.co.kr                        //
/////////////////////////////////////////////////////////////////////////////////////////////

(source code)Camera Pan/Tilt using Servo motor, control by arduino

Download the Arduino software -> go to the page
Download usb driver -> go to the page

My environment is Window 7 64 bit.
Arduino version is Mega ADK.
If you are same equipment and window, download this file directly.
driver