Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Fund a wave recorder and made a project?


Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2001, 11:31 AM
visualbasic700e
Guest
 
Posts: n/a
Wink Fund a wave recorder and made a project?


Can you test this see why it wont work i found these
codes at
http://www.vb2themax.com/Item.asp?PageID=TipBank&ID=145

and made the controls and put the
recordwave
recordstop
recordresume
recordsave
recordclose
recordpause
but it did not work or i click stop button , can anyone help.
Thanks all lot

' Global Module1.bas code

Declare Function mciSendString Lib "winmm" Alias "mciSendStringA" (ByVal _
lpstrCommand As String, ByVal lpstrReturnString As String, _
ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long


Option Explicit

Private Sub Command1_Click()
Dim CommandString, RetVal

CommandString = "Open new type waveaudio alias RecWavFile"
RetVal = mciSendString(CommandString, vbNullString, 0, 0&)
CommandString = "Record RecWavFile"

CommandString = "Set RecWavFile time format milliseconds"

End Sub

Private Sub Command2_Click()
Dim CommandString
CommandString = "Pause RecWavFile "


End Sub

Private Sub Command3_Click()
Dim CommandString

CommandString = "Resume RecWavFile "

End Sub

Private Sub Command4_Click()
Dim CommandString
CommandString = "Stop RecWavFile"

End Sub

Private Sub Command5_Click()
Dim CommandString
CommandString = "Save RecWavFile " & "c:\test677.wav"

End Sub

Private Sub Command6_Click()
Dim CommandString

CommandString = "Close RecWavFile"


End Sub


Thank you from Ben

Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->