A delegate is a pointer to a function in managed C++. Its just like a callback funciton pointer in traditional C++, but more powerful as it deals with the complexity issues and if you want allows you to assign several functions to be called in a single delegate. Avoiding Using Delegates You can pass objects […]
Category: Delegates
A more complex method originally used
Often when you create a new class you need to provide some method for the new class to pass back information to the original class, or trigger events in the original class. You can have the original class check properties in the new class, but thats no good for events that get generated in the […]
Creating Simple Callback Function
Here’s step by step instructions of how to create a callback function which allows a function in one class to be called by some other class it is using (for instance, you may have a class you’ve created that provides communication functions and you want to pass received data back to the main class or […]