
i
i
i
i
i
i
i
i
16.6. Capturing Stereo Pictures from a Pair of Video Cameras 463
0,parameter)
function is the preferred one in Visual C++. Its argu-
ments carry the name of a function to be the entry point for the thread
and a parameter that will be passed on as the argument to the thread
function. The Win32 API has its own thread-creation function that
mirrors
beginthread very closely.
// structure to pass data
typedef struct tagTHREAD_DATA {
// to the thread processes
HWND parent; long id; CGrabCamera
*
pP;
} THREAD_DATA;
HINSTANCE hInstance = 0;
// pointers to the camera objects
CGrabCamera
*
g_pCameraObject1=NULL,g_pCameraObject2=NULL;
// Left and Right Images
unsigned ...