This is a VB.Net Question
OK, so I've figured (with some help) out how to receive an asynchronous callback from a remote dll written in C++ using delegates. But I've also just figured out that a) these are returned as separate thread and b) I don't -need- a separate thread. What I'd like to do is receive the callback as an event (if possible).
So this is a four part question:
1) Is it possible to convert a callback from a remote dll (using a delegate of course) as an event?
2) If the answer to 1 is yes, does this mean that I can enable that event to act as other events in VB.Net, that is to interrupt the single thread to process the event -and- have full access to the UI so that returns from the dll can be written to form controls directly?
3) If this isn't possible, is there any value in considering events, that is should I simply resign myself to handling the callbacks via separate threads?
4) Any code examples of the 2 above (if 1 is yes) would be great (I have examples of 3 thanks)