Author Topic: Sleep doesn't Sleep  (Read 1255 times)

0 Members and 1 Guest are viewing this topic.

Aaron

  • Guest
Sleep doesn't Sleep
« on: February 26, 2014, 02:43:25 AM »
Hello Mister Pegge,

the last oxygenbasic.dll could have a bug.

That didn't work:
Code: [Select]
kernel32 = LoadLibrary  "kernel32.dll"

Bind kernel32
(
   Sleep    Sleep
)
But this was able to work:
Code: [Select]
Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
May be is a OS problem! I am driving Windows7 here.

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4205
    • Oxygen Basic
Re: Sleep doesn't Sleep
« Reply #1 on: February 26, 2014, 07:38:20 AM »
Hi Aaron,

Welcome to the forum!

I fixed a bug and posted an Oxygen update about 1 hour ago, but I don't think it would affect late binding.

Does this work?

Code: [Select]
kernel32 = LoadLibrary  "kernel32.dll"

Bind kernel32
(
   Sleep    Sleep
)

Sleep 5000
print "ok"

Aaron

  • Guest
Re: Sleep doesn't Sleep
« Reply #2 on: February 26, 2014, 08:44:02 AM »
Yes,  works. 

Thanks for DLL 26.02.2014
« Last Edit: February 26, 2014, 08:55:19 AM by Aaron »