Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionthe Fun IsUserAnAdmin() fails on Windows Vista Pin
junkMind25-Oct-07 21:27
junkMind25-Oct-07 21:27 
AnswerRe: the Fun IsUserAnAdmin() fails on Windows Vista Pin
Peter Weyzen25-Oct-07 21:35
Peter Weyzen25-Oct-07 21:35 
GeneralRe: the Fun IsUserAnAdmin() fails on Windows Vista Pin
junkMind25-Oct-07 22:18
junkMind25-Oct-07 22:18 
GeneralRe: the Fun IsUserAnAdmin() fails on Windows Vista Pin
Peter Weyzen25-Oct-07 22:30
Peter Weyzen25-Oct-07 22:30 
GeneralRe: the Fun IsUserAnAdmin() fails on Windows Vista Pin
junkMind25-Oct-07 22:42
junkMind25-Oct-07 22:42 
Questionchar* to String^ Pin
KienNT7825-Oct-07 21:01
KienNT7825-Oct-07 21:01 
AnswerRe: char* to String^ Pin
Nishad S25-Oct-07 21:13
Nishad S25-Oct-07 21:13 
GeneralRe: char* to String^ Pin
ThatsAlok28-Oct-07 19:55
ThatsAlok28-Oct-07 19:55 
GeneralRe: char* to String^ Pin
Nishad S28-Oct-07 20:06
Nishad S28-Oct-07 20:06 
AnswerRe: char* to String^ Pin
Hamid_RT25-Oct-07 21:13
Hamid_RT25-Oct-07 21:13 
QuestionListControl Pin
Vikas_12325-Oct-07 20:22
Vikas_12325-Oct-07 20:22 
QuestionRe: ListControl Pin
Hamid_RT25-Oct-07 20:25
Hamid_RT25-Oct-07 20:25 
AnswerRe: ListControl Pin
Vikas_12325-Oct-07 20:30
Vikas_12325-Oct-07 20:30 
QuestionRe: ListControl Pin
Hamid_RT25-Oct-07 20:52
Hamid_RT25-Oct-07 20:52 
AnswerRe: ListControl Pin
Nishad S25-Oct-07 20:34
Nishad S25-Oct-07 20:34 
GeneralRe: ListControl Pin
Vikas_12325-Oct-07 21:35
Vikas_12325-Oct-07 21:35 
Questioncombo box Pin
Paulraj G25-Oct-07 20:05
Paulraj G25-Oct-07 20:05 
AnswerRe: combo box Pin
Hamid_RT25-Oct-07 20:22
Hamid_RT25-Oct-07 20:22 
GeneralRe: combo box Pin
Paulraj G25-Oct-07 21:40
Paulraj G25-Oct-07 21:40 
GeneralRe: combo box Pin
Hamid_RT25-Oct-07 21:56
Hamid_RT25-Oct-07 21:56 
JokeRe: combo box Pin
Nelek28-Oct-07 23:11
protectorNelek28-Oct-07 23:11 
GeneralRe: combo box Pin
Hamid_RT29-Oct-07 4:27
Hamid_RT29-Oct-07 4:27 
JokeRe: combo box Pin
Nelek29-Oct-07 21:11
protectorNelek29-Oct-07 21:11 
GeneralRe: combo box Pin
Hamid_RT26-Oct-07 0:13
Hamid_RT26-Oct-07 0:13 
Questionaudio recording problem with mciExecute(). Pin
kadkir25-Oct-07 20:00
kadkir25-Oct-07 20:00 
I am developing a web application in that I need to record audio, for that I am importing "winmm.dll" and using mciExecute function.(the following code is vb.net). If I have posted in irrelavent forum please let me know where should I post questions related to audio and video (for web development).
<code>
Imports System.Runtime.InteropServices
Imports Microsoft.VisualBasic
Imports Microsoft.VisualBasic.Devices

Partial Class audioRec
Inherits System.Web.UI.Page
<DllImport("winmm.dll", EntryPoint:="mciExecute", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> Private Shared Function mciExecute(ByVal lpstrCommand As String) As Boolean
End Function

Protected Sub BtnStart_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnStart.Click

mciExecute("open new Type waveaudio Alias recsound1")
mciExecute("set recsound1 time format ms bitspersample 16 channels 1 samplespersec 11025")
mciExecute("record recsound1")



End Sub

Protected Sub BtnStop_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnStop.Click
mciExecute("save recsound1 c:\\record.wav")
mciExecute("close recsound1 ")

Dim c As New Computer
c.Audio.Stop()
End Sub

Protected Sub BTNplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BTNplay.Click
Dim computer As New Computer
computer.Audio.Play("c:\\record.wav", AudioPlayMode.Background)
End Sub
End Class
</code>
but when I am clicking the start button "the order in which you are passing parameters is invalid please correct the order" msg is getting displayed. I need to to record an audio file in "8khz, 16 bit, mono" format. How can I meet this requirement.

i will be thankful for ur suggestions..

with regards,
kiran

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.