PDA

View Full Version : using tFrameHandlerSinkPtr



WK Ho
December 31, 2007, 15:22:40
Hi there
I jsut get a camera from Imagingsource and start testing out the IC Control version 3.0 When I use the following statment from the doc. 's example:
tFrameHandlerSinkPtr pSink = FrameHandlerSink::create( eY800, 1 );

There would be errors:

aptureTest.cpp
CaptureTestDlg.cpp
D:\ICCapture\CaptureTest\CaptureTestDlg.cpp(154) : error C2065: 'tFrameHandlerSinkPtr' : undeclared identifier
D:\ICCapture\CaptureTest\CaptureTestDlg.cpp(154) : error C2146: syntax error : missing ';' before identifier 'pSink'
D:\ICCapture\CaptureTest\CaptureTestDlg.cpp(154) : error C2065: 'pSink' : undeclared identifier
D:\ICCapture\CaptureTest\CaptureTestDlg.cpp(154) : error C2653: 'FrameHandlerSink' : is not a class or namespace name
D:\ICCapture\CaptureTest\CaptureTestDlg.cpp(154) : error C2065: 'create' : undeclared identifier
D:\ICCapture\CaptureTest\CaptureTestDlg.cpp(154) : error C2065: 'eY800' : undeclared identifier
Generating Code...
Error executing cl.exe.

Could you pls tell me what need to be done before tFrameHandlerSinkPtr can be used as suggested in your example.

Thanks in advance and
Happy New Year.

WK

WK Ho
December 31, 2007, 15:37:01
Hi
I think I must specify :
using namespace _DSHOWLIB_NAMESPACE;
in my application file in order to use it. After adding the above on the beginning of the file it compiles without error.
Is this the causes??

WK

Stefan Geissler
January 2, 2008, 11:15:38
Hi WK,

Yes, you are right. The DShowLib namespace must be used or you could write
DShowLib::tFrameHandlerSinkPtr ThePointer;

DShowLib = _DSHOWLIB_NAMESPACE