USB摄像头图像采集VC源代码
void CVideoEXEDlg::OnDisplay()
{
typedef void (* DISPLAY)(HWND hWnd,BITMAPINFO m_InInfo,COMPVARS m_CV);
HINSTANCE hInst;
hInst = ::LoadLibrary ("VideoDLL.dll");
if(hInst==NULL)
{
AfxMessageBox("Fail to load MyVideo.dll");
}
else
{
InitCompressor();
DISPLAY lpDisplay;
lpDisplay = (DISPLAY)GetProcAddress (hInst,"Display");
if(lpDisplay!=(DISPLAY)NULL)
(lpDisplay)(m_hCaptureWnd,m_InInfo,m_CV);
1