Re: Wanna Sleep! by Bob
Bob
Fri Apr 30 02:24:54 CDT 2004
=?Utf-8?B?U3VuaWw=?= wrote:
>
> If you make a simple test app in vb6, and call Sleep API from that, (give argument as 10)
> You'll notice that the sleep funtion never returns... even after the specified timeout....
>
> I created a new proj, added these extra code :
>
> Private Declare Function Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
>
> Private Sub Form_Load()
> Sleep 100
> End Sub
>
> Thats it.
uh ... exactly what are you expecting to observe?
If you don't put anything else in that procedure, there's going to be
absolutely no effect when the sleep call returns. Try adding something
after it - anything, even a messagebox.
Bob