Original Post
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