• Advertisement
Sign in to follow this  

DLL threading and VB

This topic is 3896 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++ (VS 6) and a VB6 application which references this DLL. There is a method in the DLL which is called by the VB6 application, and this method takes a long time to execute. Whilst it is executing, the VB app is unresponsive. This is not the desired behaviour. I want it to work so that when VB calls the method in the DLL, the DLL kicks off a new thread to do the work, and the original returns immediately to VB. The problem is I have no idea how to do this. Also would it be possible for the DLL thread to call a method in the VB app when it has finished? Any help will be greatly appreciated. Tom

Share this post


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

  • Advertisement