Hi everyone,
I’ve got the following snippet of code (VB6, of couse). I wonder, how do I the same by means of Vb25k
Do
If i = giRefrescar Then
Refresh
i = 1
Else
i = i + 1
End If
Ejecucion (PrepararEjecucion)
Loop While WaitForSingleObject(hStopPendingEvent, CLng(giFrec)) = WAIT_TIMEOUT
We’ve available WaitForMultipleObjects with .Net but single one

WaitForSingleObject in Framework 2.0??
JFoushee
Waitforsingle object is a function found in Kernel32.dll. You need to declare a reference to the function (as you did in VB6) in order to invoke the function.
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dllproc/base/waitforsingleobject.asp
However, You may want to use the threading class in .net or even the Backgroundworker component inorder to manage multi-threaded processes
Vyatsek
There's no need to do interop to do thread syncrhonization in the .Net FX. Take a look at the System.Threading namespace, in particular at: http://msdn2.microsoft.com/en-us/library/system.threading.waithandle.aspx
Hope this helps,
DannyRC