Skip to main content
GameDev.net gamedev.net
🔒 Locked

DLL threading and VB

Started by 3T Jun 23, 2007 at 12:46 PM 0 replies 500+ views
Original Post
3T
3T
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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.