
Yield (DoEvents) in a .DLL
Hello,
I've written a .DLL in Borland C++ version 4.52 (Win32) and it goes
through a looping process in the .DLL funtion I'm calling. I'm calling
the .DLL from a Visual Basic program I've written.
My problem is this:
When I initiate the .DLL, it starts the looping process and never returns
control back to the Visual Basic program until after the whole looping
process finishes. I need control to be passed back to my Visual Basic
program so that I can do other things while the .DLL is processing.
Is there a way to cause the .DLL to Yield control, similar to the DoEvents
statement in Visual Basic? I've tried to call the Yield function in the
Windows.H file, but when it is called, the .DLL program blows up. Why?
I use pointers in my .DLL program, so do I have to lock my data or stack
segments in LibMain?
Thank you VERY much for your help and insight into this problem...
--Roger