HWND VFWAPI capCreateCaptureWindowA (
        LPCSTR lpszWindowName,
        DWORD dwStyle,
        int x, int y, int nWidth, int nHeight,
        HWND hwndParent, int nID);BOOL VFWAPI capGetDriverDescriptionA (UINT wDriverIndex,
        LPSTR lpszName, int cbName,
        LPSTR lpszVer, int cbVer);HWND VFWAPI capCreateCaptureWindowW (
        LPCWSTR lpszWindowName,
        DWORD dwStyle,
        int x, int y, int nWidth, int nHeight,
        HWND hwndParent, int nID);

解决方案 »

  1.   

    Declare Function capCreateCaptureWindowA Lib "avicap32.dll" ( _
        ByVal lpszWindowName As String, _
        ByVal dwStyle As Long, _
        ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Integer, _
        ByVal hWndParent As Long, ByVal nID As Long) As LongDeclare Function capGetDriverDescriptionA Lib "avicap32.dll" ( _
        ByVal wDriver As Integer, _
        ByVal lpszName As String, _
        ByVal cbName As Long, _
        ByVal lpszVer As String, _
        ByVal cbVer As Long) As Boolean
      

  2.   

    视频捕获完整代码:
    www.ournba.com/softsrc/vbcap.rar