View Full Version : There is a error in m_Grabber.setSinkType...

August 9, 2007, 16:06:08
Hello, I am a new programer using IC Imageing..... , I downloaded some example from this site, and complied them, there are some error in the follow, I used VC.2005 .

m_Grabber.setSinkType( FrameGrabberSink(FrameGrabberSink::tFrameGrabberMo de::eGRAB, DShowLib::eRGB24 ) );

error C2664: 'DShowLib::Grabber::setSinkType' : cannot convert parameter 1 from 'DShowLib::FrameGrabberSink' to 'const smart_ptr<TType> &'

How can I solve this problem, thank you very much.

Stefan Geissler
August 9, 2007, 16:13:26
Hi Kid,

Please change the code as follows:

DShowLib::FrameHandlerSink::tFHSPtr m_pSink;

m_pSink = DShowLib::FrameHandlerSink::create( DShowLib::eRGB24, 5 );
m_pSink->setSnapMode( true );
m_Grabber.setSinkType( m_pSink );

This code snippet is from the Demo Sample application (Mainframe.cpp).

August 10, 2007, 05:54:47
Thank you for your answer.