Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to read a file that is always written to? Pin
pistolenpaultje27-Apr-06 12:46
pistolenpaultje27-Apr-06 12:46 
QuestionC# Express Edition - Deployment Pin
econner26-Apr-06 10:05
econner26-Apr-06 10:05 
AnswerRe: C# Express Edition - Deployment Pin
Ed.Poore26-Apr-06 11:59
Ed.Poore26-Apr-06 11:59 
GeneralRe: C# Express Edition - Deployment Pin
econner26-Apr-06 12:08
econner26-Apr-06 12:08 
GeneralRe: C# Express Edition - Deployment Pin
Ed.Poore26-Apr-06 12:27
Ed.Poore26-Apr-06 12:27 
GeneralRe: C# Express Edition - Deployment Pin
econner26-Apr-06 16:38
econner26-Apr-06 16:38 
QuestionMDIcontainer transparency Pin
CiberwizZ26-Apr-06 8:08
CiberwizZ26-Apr-06 8:08 
Questionplaying an audio Pin
hafz26-Apr-06 7:55
hafz26-Apr-06 7:55 
i am developing a project on outgoing call. i want to play an audio file when the phone is connected. i have used the following code:
ITTerminalSupport ts = (TAPI3Lib.ITTerminalSupport)ia[0];
string str=TAPI3Lib.TapiConstants.CLSID_String_FilePlaybackTerminal;
//MessageBox.Show(str);
int k= TAPI3Lib.TapiConstants.TAPIMEDIATYPE_MULTITRACK;
//MessageBox.Show(k.ToString());
ITTerminal fpbt =
ts.CreateTerminal(str,k, TAPI3Lib.TERMINAL_DIRECTION.TD_CAPTURE);
ITMediaPlayback mp =(TAPI3Lib.ITMediaPlayback)fpbt;
object[] audiofile=new object[1];
audiofile[0]=@"C:\Documents and Settings\Ankita\Desktop\project\tapi3_dev\tapi3_dev\my 3rd file.wav";

mp.PlayList=audiofile;//because it requires objet array.

/*If you have already selected terminal by bcc.SelectTerminalOnCall(terminal)
then please unselect it by bcc.UnselectTerminalOnCall(terminal)*/

//bcc1.SelectTerminalOnCall(fpbt);

mc=(TAPI3Lib.ITMediaControl)fpbt;
try
{
mc.Start();//will start playing the audiofile.
}
catch(Exception exp)
{
MessageBox.Show(exp.Message.ToString());
}
the code runs successfully but without playing an audio file even though the file is in correct format.
can anyone help me. i am using a voice modem.
QuestionSystem Notify Pin
Sabry190526-Apr-06 7:07
Sabry190526-Apr-06 7:07 
AnswerRe: System Notify Pin
Ravi Bhavnani26-Apr-06 7:26
professionalRavi Bhavnani26-Apr-06 7:26 
QuestionProblem using COM dll Pin
shezh26-Apr-06 6:59
shezh26-Apr-06 6:59 
AnswerRe: Problem using COM dll Pin
Judah Gabriel Himango26-Apr-06 8:16
sponsorJudah Gabriel Himango26-Apr-06 8:16 
GeneralRe: Problem using COM dll Pin
shezh26-Apr-06 21:28
shezh26-Apr-06 21:28 
QuestionGlobal variables (WinForms) Pin
benqazou26-Apr-06 6:25
benqazou26-Apr-06 6:25 
AnswerRe: Global variables (WinForms) Pin
Ravi Bhavnani26-Apr-06 6:50
professionalRavi Bhavnani26-Apr-06 6:50 
AnswerRe: Global variables (WinForms) Pin
Ravi Bhavnani26-Apr-06 7:48
professionalRavi Bhavnani26-Apr-06 7:48 
AnswerRe: Global variables (WinForms) Pin
Raffi Basmajian12-Jun-06 17:34
Raffi Basmajian12-Jun-06 17:34 
QuestionAdding Rows in underlying BindingSource / DataGridView Pin
StyleGuide26-Apr-06 4:47
StyleGuide26-Apr-06 4:47 
QuestionWindows authentication Domainname\Userid Pin
krishna nimmalapudi26-Apr-06 4:35
krishna nimmalapudi26-Apr-06 4:35 
Questiondatagridview + IDictionary + ComboBoxCell Pin
g00fyman26-Apr-06 4:14
g00fyman26-Apr-06 4:14 
QuestionExecuting code continuously while button is pressed Pin
shultas26-Apr-06 3:59
shultas26-Apr-06 3:59 
AnswerRe: Executing code continuously while button is pressed Pin
Ravi Bhavnani26-Apr-06 4:16
professionalRavi Bhavnani26-Apr-06 4:16 
QuestionHelp Pin
yantir26-Apr-06 3:53
yantir26-Apr-06 3:53 
AnswerRe: Help Pin
g00fyman26-Apr-06 4:23
g00fyman26-Apr-06 4:23 
AnswerRe: Help Pin
J4amieC26-Apr-06 4:46
J4amieC26-Apr-06 4:46 

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.