Nov 9, 2003 #1 C coco_3010 Newcomer Joined Nov 8, 2003 Messages 8 Location England hi im tryin to make the internal speaker beep, Visual Basic: Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long beep (100 , 100)
hi im tryin to make the internal speaker beep, Visual Basic: Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long beep (100 , 100)
Nov 9, 2003 #2 M mutant Ultimate Contributor Joined Jan 19, 2003 Messages 1,771 Location Enfield, CT, USA Change all declarations to an integer: Visual Basic: Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Integer, ByVal dwDuration As Integer) As Integer Im assuming you used this code for VB6. In .NET, Integer is equal in size to Long from VB6, thats why you need to change it.
Change all declarations to an integer: Visual Basic: Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Integer, ByVal dwDuration As Integer) As Integer Im assuming you used this code for VB6. In .NET, Integer is equal in size to Long from VB6, thats why you need to change it.