AttachListener in the new SDK

Share source code samples for use with the Camera SDK
Post Reply
suhl79
Posts: 21
Joined: Thu Mar 18, 2010 7:45 am

AttachListener in the new SDK

Post by suhl79 » Wed Nov 10, 2010 7:28 am

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.

suhl79
Posts: 21
Joined: Thu Mar 18, 2010 7:45 am

Re: AttachListener in the new SDK

Post by suhl79 » Thu Nov 11, 2010 8:54 am

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.

Post Reply