torturedmind
Programmer
am new to VB and am writing an app with 3 dsitinctive sound outputs using only the pc speaker. those 3 distinct sounds are actually 3 separate projects and naturally, compiled into 3 different EXE's. this way, i find that it's much easier for me to re-compile anytime i wanna change the tones of each output. problem is, after running each EXE and i wanna re-compile and update any of them, Windows would not allow me cuz it says that the EXE is still running. here is one of the codes:
Public Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
Sub Main()
For h = 1 To 2
For i = 500 To 1000 Step 20
Beep i, 1
Next i
Next h
End Sub
i know it's kinda simple but i think am missing something. any help will be very much appreciated...
torturedmind![[trooper] [trooper] [trooper]](/data/assets/smilies/trooper.gif)
Public Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
Sub Main()
For h = 1 To 2
For i = 500 To 1000 Step 20
Beep i, 1
Next i
Next h
End Sub
i know it's kinda simple but i think am missing something. any help will be very much appreciated...
torturedmind
![[trooper] [trooper] [trooper]](/data/assets/smilies/trooper.gif)