Visual C++ .net
Posted: Wed Jun 30, 2010 7:36 am
I will like to thank in advance anyone willing to help me; I am trying to get the image displayed in a picturebox using DrawFrame, I am having a hard time figuring out how to get the picture handle. I am using Visual C++ .net, below is a portion of the code I'm using.
waittime = 10; // value in milliseconds; 0 = don't wait; INFINITE = wait till data
running = 6000; // run ~1 minute for waittime=10 ms
while(running--) //!TimeToClose
{
pCamera->GetFrame(waittime, &pFrame);
?//pCamera->DrawFrame(pFrame, pictureBox1);
pFrame->Free();
}
// shut everything down
pCamera->Stop();
pCamera->Close();
CoUninitialize();
waittime = 10; // value in milliseconds; 0 = don't wait; INFINITE = wait till data
running = 6000; // run ~1 minute for waittime=10 ms
while(running--) //!TimeToClose
{
pCamera->GetFrame(waittime, &pFrame);
?//pCamera->DrawFrame(pFrame, pictureBox1);
pFrame->Free();
}
// shut everything down
pCamera->Stop();
pCamera->Close();
CoUninitialize();