Visual Basic'te iş parçacığı içermeyen basit bir uyku işlevi var mı. C: orada var gibi benzerUyku işlevi Visual Basic
şey sleep(1);
Biz de bu kodu çalıştı:
Declare Sub Sleep Lib "kernel32" (ByVal milliseconds As Long)
' pause for 5 seconds
Sleep 5000
... ama işe yaramadı. Eğer .NET hakkında soruyorsun yana
PInvokeStackImbalance was detected Message: A call to PInvoke function 'Ganzenbordspel!Ganzenbordspel.Spel::Sleep' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.