IltmmCapture::SaveStillDIB Example for C++
USES_CONVERSION;
HRESULT hr = m_capture->StartCapture (ltmmCapture_Mode_Still);
if(SUCCEEDED(hr))
{
BSTR bstrFileName = SysAllocString(T2OLE("c:\\dib.bmp"));
m_capture->SaveStillDIB (bstrFileName, -1);
m_capture->StopCapture ();
SysFreeString(bstrFileName);
}