Managed function pointers
Posted on 2006-05-23
OK, this is my case:
I have one class library that recieves network data, and interprets that very data. When a command reaches the interpreter, I want a function in another class library to be executed when a specific command is executed.
The class library which holds the function that should be executed already holds a reference to the network library, so adding the class library holding the function to be executed can not be referenced from the network library.
I would therefore need function pointers I guess.
My problem is that I don't know how I would create these pointers, is delegates the correct way?
Unmanaged function pointers just doesn't seem to work in managed C++.
Any help is appreciated!