coco_3010 Posted November 9, 2003 Posted November 9, 2003 hi im tryin to make the internal speaker beep, Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long beep (100 , 100) Quote
*Experts* mutant Posted November 9, 2003 *Experts* Posted November 9, 2003 Change all declarations to an integer: 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.