Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
' Attempt to call Beep function in Win32 API
|
||||
Dim As Any Ptr library = DyLibLoad("kernel32.dll") '' load dll
|
||||
|
||||
If library = 0 Then
|
||||
Print "Unable to load kernel32.dll - calling built in Beep function instead"
|
||||
Beep : Beep : Beep
|
||||
Else
|
||||
Dim beep_ As Function (ByVal As ULong, ByVal As ULong) As Long '' declare function pointer
|
||||
beep_ = DyLibSymbol(library, "Beep")
|
||||
If beep_ = 0 Then
|
||||
Print "Unable to retrieve Beep function from kernel32.dll - calling built in Beep function instead"
|
||||
Beep : Beep : Beep
|
||||
Else
|
||||
For i As Integer = 1 To 3 : beep_(1000, 250) : Next
|
||||
End If
|
||||
DyLibFree(library) '' unload library
|
||||
End If
|
||||
|
||||
Print
|
||||
Print "Press any key to quit"
|
||||
Sleep
|
||||
Loading…
Add table
Add a link
Reference in a new issue