Archived

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

the darkening

Bi-directional DLL interface

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