Jump to content
  • Advertisement
Sign in to follow this  
3T

Multithreaded C++ DLL with VB

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

Hi I have a DLL written in C++ and a VB app which uses this DLL. The VB app calls 2 functions in the DLL: sendMessage(...) and getMessage(). The sendMessage() function can take some time to execute, and the VB app waits for it to finish before continuing with it's own execution. I need the getMessage() function to be called during the sendMessage execution from the VB app. I presume I would need to use threading to achieve this, which I know nothing about. Maybe it should work like this: VB calls sendMessage() function. The DLL starts a new thread and passes this operation to the new thread. The main thread then returns to VB immediately. Whilst the new thread is busy executing the operation, VB can call getMessage() and the main thread will handle this request. Any assistance would be greatly appreciated :) P.S. I'm using Visual Studio 6.0 on Windows XP.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by DaBookshah
Hint: Visual studio 2005 Express is free. There are even offers that let you get standard free, I think.


I use VS 2005 at work, and I hate it. Not the IDE, but the .NET framework. Even if I did use it, how would it help with my problem?

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!