I am currently working on a project and I want to know how to utilize callbacks. If it makes a difference i am using vc .net. Which makes the MFC example slightly difficult to follow. As I read a previous thread (creating a callback method in C++ ) I noticed someone commenting on the existence of less convoluted examples.

I was polling for frames, but I realized that this is not suitable for what I am doing. Thus I need to know how to initialize callback events on vc .net.

Hello as I try to figure out callbacks in the VC .net framework I have hit another dead end. I checked the following link http://surfacetracker.sourceforge.net/ which has some very useful information.

Any further information will be greatly appreciated!

Below is a small section of what I'm trying to do:

/*inside the main function I have the following but it does not work, what I'm attempting to do is declare a pointer to the function FrameAvailable such that when a new frame is available my function FrameAvailableHandle is executed

I know i'm doing something wrong, but I don't know what?

*/

void(*FrameAvailableHandle)(struct INPCamera *pCamera); // where FrameAvailableHandle is the function that will be executed everytime there is a new frame
FrameAvailableHandle=(void *) FrameAvailable(); //where FrameAvailable is the Method