Archived

This topic is now archived and is closed to further replies.

Bi-directional DLL interface

This topic is 5888 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How does a well working bi-directional DLL interface look like? If I have a DLL, I want to use functions in it, but the DLL itself should be able to use external functions, too. Is it ok, if I write something like this type int (*TEST); TEST test; void test_func(TEST t); to give the DLL access to local functions? Darkening

Share this post


Link to post
Share on other sites
You can use callbacks by passing a function pointer, qsort, createwindow, and createthread work like that.

You could also pass an object pointer and a method pointer.

You could also use an observer or a connect point.

Magmai Kai Holmlor
- Not For Rent

Share this post


Link to post
Share on other sites