Jump to content
  • Advertisement


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

the darkening

Bi-directional DLL interface

This topic is 6107 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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!