Hi
I need to call a DLL method asynchronously. But async call is possible only in Activex EXE (as per my knowlwdge ) .
How DLL method can notify the client abt the completion of method execution if it is called asynchronously.
Thks
Vidhi
Printable View
Hi
I need to call a DLL method asynchronously. But async call is possible only in Activex EXE (as per my knowlwdge ) .
How DLL method can notify the client abt the completion of method execution if it is called asynchronously.
Thks
Vidhi
Visual Basic 6.0 does not support multi-threading natively. There are workarounds but they required a bit of effort. You may want to start with the below links:
http://www.freevbcode.com/ShowCode.Asp?ID=1287
http://www.planet-source-code.com/vb...14479&lngWId=1
the first link in Paul's post is one of my favourite articles. it clearly explains why it is a bad idea to use the CreateThread API in VB.
That does not mean it is not possible. The June 1999 article of the late VBPJ (Black Belt Programming - Create Worker Threads in DLLs), by Matthew Curland, explains how to create safe 3d in a activeX dll (a little tricky). You can download it from http://www.fawcette.com/archives/magazines/vsm/
Marco