beepin

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)
 
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.
 
Back
Top