Nov 9, 2003 #1 C coco_3010 Member Joined Nov 8, 2003 Messages 8 Location England hi im tryin to make the internal speaker beep, Code: 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, Code: 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 Well-known member Joined Jan 19, 2003 Messages 1,771 Location Enfield, CT, USA User Rank *Expert* Change all declarations to an integer: Code: 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: Code: 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.