Jump to content
  • Advertisement
Sign in to follow this  
azherdev

[C++] Designing a DLL with callback functionality

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

Whats up? I am writing functionality to communicate with web services from my game developed in C++. I want to export that functionality into a DLL so I may re-use it in other languages (.net, c++, blitzmax, python, etc). But, I do not want the DLL functions to block the thread from which they are called from. My C++ game is single threaded and languages such as BlitzMax doesn't allow you to create threads. So basically, I need the DLL to handle threading at this point. So, my question is, how would you recommend to structure the DLL? My only idea that makes sense to me is: 1. Call function GetList() 2. Call function GetListDone(), true/false 3. If #2 returns TRUE, then call GetListResult() Am I missing something that is already made that will facilitate this? Remember, I need to be able to use this DLL without having to create threads in the language I am programming in.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!