希望实现这样的功能:
    一个视屏采集卡和摄像头,要在DELPHI调用该如何实现,我现有代码如下,程序执行到 if(capDriverConnect(m_hCapWnd,0))返回假,请教问题出在哪里:
   m_hCapWnd:=capCreateCaptureWindow('主窗口',WS_VISIBLE,0,0,self.width,self.height,self.Handle,0);
    if(capDriverConnect(m_hCapWnd,0)) then
      begin
       //capDriverConnect(m_hCapWnd,0);
         //capOverlay(m_hCapWnd,true);   //普通的摄像头不能用overlay的方式 主意;
         capPreviewRate(m_hCapWnd,30);  //设置帧率为30
         capFileSetCaptureFile(m_hCapWnd,'c:\aa.bmp');
         capPreview(m_hCapWnd,true);    // preview方式显示
         dwSize:=capGetVideoFormatSize(m_hCapWnd);
         capGetVideoFormat(m_hCapWnd,@setBmp, dwSize);
         setBmp.bmiHeader.biWidth:=352;    //这个就是设置你捕捉图片的大小了 宽度 :)
         setBmp.bmiHeader.biHeight:=288; //这个就是设置你捕捉图片的大小了 高度 :)
         capSetVideoFormat(m_hCapWnd,@setBmp,dwSize);