m_hCapWnd:=capCreateCaptureWindow(Pchar('VideoTest'),
WS_CHILD or WS_VISIBLE,0,0,AviPanel.width,AviPanel.height,AviPanel.Handle,0);if(capDriverConnect(m_hCapWnd,0)) then
begin
capPreviewRate(m_hCapWnd,30);
capPreview(m_hCapWnd,true);
dwSize:=capGetVideoFormatSize(m_hCapWnd);
capGetVideoFormat(m_hCapWnd,@setBmp, dwSize);
setBmp.bmiHeader.biWidth:=352;
setBmp.bmiHeader.biHeight:=288;
capSetVideoFormat(m_hCapWnd,@setBmp,dwSize);
end;不管我换到哪一路视频capDriverConnect(m_hCapWnd,0)始终为fasle哪位大侠帮我指点一下阿
WS_CHILD or WS_VISIBLE,0,0,AviPanel.width,AviPanel.height,AviPanel.Handle,0);if(capDriverConnect(m_hCapWnd,0)) then
begin
capPreviewRate(m_hCapWnd,30);
capPreview(m_hCapWnd,true);
dwSize:=capGetVideoFormatSize(m_hCapWnd);
capGetVideoFormat(m_hCapWnd,@setBmp, dwSize);
setBmp.bmiHeader.biWidth:=352;
setBmp.bmiHeader.biHeight:=288;
capSetVideoFormat(m_hCapWnd,@setBmp,dwSize);
end;不管我换到哪一路视频capDriverConnect(m_hCapWnd,0)始终为fasle哪位大侠帮我指点一下阿
我弄不明白到底是为什么连不上啊