C/C++ callback with sending object pointer

The callback was always confusing for me until today. Today, I wrote my own callback then put in the library. After that, In my c++ application I register my function to the callback. It was really cool the see my c++ function getting called from outside of my program.  Especially, when it is my own callback function.

While I was doing this I came across a website which is really good to learn for the different aspect of the writing callback. You can access the website from here 

If you go over the website and run the given examples, you will have a deep intuition of the callback function both in c and c++.

Have a wonderful day.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s