我试了一下,怎么不行啊?救救我呀!

解决方案 »

  1.   

    在那里加入capCreateCaptureWindow()函数?
      

  2.   

    教教我呀,我不会用,急呀!!!在哪里加入capCreateCaptureWindow()函数,我在对话框的初始化语句中加的。总是有两个错误,帮忙看看吧。我快急死了ytestframe413Dlg.obj : error LNK2001: unresolved external symbol _capCreateCaptureWindowA@32
    Debug/ytestframe413.exe : fatal error LNK1120: 1 unresolved externalsBOOL CYtestframe413Dlg::OnInitDialog()
    {
    CDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range.
    ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
    ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE);
    if (pSysMenu != NULL)
    {
    CString strAboutMenu;
    strAboutMenu.LoadString(IDS_ABOUTBOX);
    if (!strAboutMenu.IsEmpty())
    {
    pSysMenu->AppendMenu(MF_SEPARATOR);
    pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
    }
    } // Set the icon for this dialog.  The framework does this automatically
    //  when the application's main window is not a dialog
    SetIcon(m_hIcon, TRUE); // Set big icon
    SetIcon(m_hIcon, FALSE); // Set small icon

    // TODO: Add extra initialization here  我加的代码
             m_hWndCap=capCreateCaptureWindow(        
             NULL,WS_CHILD|WS_VISIBLE|WS_BORDER,    
    0,0,50,80,
    this->m_hWnd,
    1);
          
           return TRUE;  // return TRUE  unless you set the focus to a control
    }