HI kishan66,
You can use the below code to find camera is connected or not
m_hWndVideo=capCreateCaptu
if(m_hWndVideo==NULL)
AfxMessageBox("NULL");
BOOL ok=capDriverConnect(m_hWnd
if(ok==TRUE)
{
AfxMessageBox("Camera Connected");
}
else
{
AfxMessageBox("Camera Not Connected");
}
Regards,
Vimal Alex
Main Topics
Browse All Topics





by: pgnatyukPosted on 2009-09-16 at 23:00:09ID: 25353170
It is an old topic for me and I don't remember all details. WS_POPUP, 0, 0, 160, 200, NULL, 0);)
What I found in my old source about it is a function Check that:
1. Creates the window (CreateCaptureWindow(NULL,
2. Then cal capCaptureGetSetup to retrieve CAPTUREPARMS.
3. In this structure changes fyield (capParams.fyield = TRUE). Then call capCaptureSetSetup.
4. calls capDriverConnect.
I think, it allows to detect if you have the video camera installed.
Select allOpen in new window