Page 1 of 1

AttachListener in the new SDK

Posted: Wed Nov 10, 2010 7:28 am
by suhl79
Hi

Could You please provide me with short example of how to attach FrameAvailable listener in C using the new SDK?
I've found in the doc files that I should use camera->AttachListener() function but it is more tricky I think than it was in C#. Thanks.

Re: AttachListener in the new SDK

Posted: Thu Nov 11, 2010 8:54 am
by suhl79
I don't see edit option, so I add it as a reply.

Everything is clear now. I didn't see Camera object to be passed as a FrameAvailable argument as it was in previous SDK so I thought it should be made some tricky way, but it just needs to instantiate new object which implements cCameraListener interface, define my own FrameAvailable() method, and pass Camera object in constructor or by other method argument. Sorry for bothering you.