PDA

View Full Version : Error message FrameGrabberSink



uvel
November 21, 2008, 12:32:45
Hello,
I want update my project from IC Imaging Control 2.1 to IC Imaging Control 3.0 and receive the following Error message:

D:\work\Firewire_TIS\PtP-Dll.3.00\ImageProcDLL\ImageProc.cpp(104) : error C2664: 'setSinkType' : Konvertierung des Parameters 1 von 'class DShowLib::FrameGrabberSink' in 'const class smart_ptr<class DShowLib::GrabberSinkType,class refcount_ptr<class
DShowLib::GrabberSinkType> > &' nicht moeglich
Ursache: Konvertierung von 'class DShowLib::FrameGrabberSink' in 'const class smart_ptr<class DShowLib::GrabberSinkType,class refcount_ptr<class DShowLib::GrabberSinkType> >' nicht moeglich
Quelltyp konnte von keinem Konstruktor angenommen werden, oder die Ueberladungsaufloesung des Konstruktors ist mehrdeutig
Fehler beim Ausführen von cl.exe.

ImageProcessing.exe - 1 Fehler, 0 Warnung(en)

Do you have any idears what is wrong. You find the source code attached.

Kind regards
Ulli

Sascha Schmidt
November 21, 2008, 13:35:29
Hallo uvel,

Please replace FrameGrabberSink with FrameHandlerSink, because the FrameGrabberSink will not be available in future versions of the library.

The FrameHandlerSink is used as follows:


m_pSink = FrameHandlerSink::create( DShowLib::eRGB24, 2 );
m_pSink->setSnapMode( false );
m_cGrabber.setSinkType( m_pSink );


For further informations, please have a look at the class library user's guide at "FrameHandlerSink::create Method".