Click here to Skip to main content
15,907,281 members
Home / Discussions / C#
   

C#

 
QuestionData Grid Pin
Member 45007023-Apr-08 21:06
Member 45007023-Apr-08 21:06 
GeneralRe: Data Grid Pin
pmarfleet3-Apr-08 21:45
pmarfleet3-Apr-08 21:45 
GeneralRe: Data Grid Pin
Rick van Woudenberg4-Apr-08 3:44
Rick van Woudenberg4-Apr-08 3:44 
Questionhow can we get the call stack of target process Pin
sujithkumarsl3-Apr-08 20:50
sujithkumarsl3-Apr-08 20:50 
AnswerRe: how can we get the call stack of target process Pin
Pete O'Hanlon4-Apr-08 1:22
mvePete O'Hanlon4-Apr-08 1:22 
QuestionFTP Download trouble Pin
m1n1me3-Apr-08 20:24
m1n1me3-Apr-08 20:24 
GeneralRe: FTP Download trouble Pin
Sam Xavier24-Apr-08 21:11
Sam Xavier24-Apr-08 21:11 
QuestionUninitialized Object COM Exception Pin
bhavincpatel3-Apr-08 20:04
bhavincpatel3-Apr-08 20:04 
Hello All,

I m new in Tapi programming. My applications load the (contact no.)data from database to the listbox. On dial button click the application should starts calling all the Contact no. in sequence from the list box.
I m using Tapi3 (TAPI3Lib) library. My first call gets connected, but i don't get connected to subsequent calls & COM Interoperatability Exception is thrown. i would like to know how to release or dispose each individual Call in Tapi3. Please if any one could guide me, its urgent. I ll be obliged.

Thanks a lot..........


//Thread method

private void connmethod(Object iCall)
{
ITBasicCallControl2 ibCall = (ITBasicCallControl2)iCall;
string s = "C:\\Documents andSettings \\AllUsers \\Documents\\My Music\\Sample Music\\BS.wav";
//pTapi.RegisterCallNotifications(pAddress, false, true, 16, 1);

ibCall.Connect(false);
}

//Calling Method in Tapi

private void btncall_Click(object sender, EventArgs e)
{
ITBasicCallControl2 iCall;

try
{
pTapi.Initialize();
lEnumAddress = pTapi.EnumerateAddresses();
lEnumAddress.Next(1, out pAddress, ref ui);
for (int i = 0; i <= lstboxCallno.Items.Count; i++)
{
Console.WriteLine("ui:{0}", ui);

if (pAddress.AddressName.ToString()
.Equals(cmbModem.SelectedItem.ToString()))
{
btncall.Enabled = false;
btnDisconnect.Enabled = true;

pCall = null;
iCall = null;

txtboxno.Text = "";
txtboxno.Text = lstboxCallno.Items[0]
.ToString();
iCall = (ITBasicCallControl2)pAddress.
CreateCall(txtboxno.Text.ToString()
, LINEADDRESSTYPE_PHONENUMBER, TAPIMEDIATYPE_AUDIO);
pCall = iCall;
Console.WriteLine("No : {0} ", txtboxno.Text.ToString());
if (iCall != null)
{

Thread t = new Thread(new ParameterizedThreadStart(connmethod));
t.Start((Object)iCall);
t.Join();


pTapi.RegisterCallNotifications(pAddress, false, true, 16, 1);
Console.WriteLine("Thread State:{0}", t.ThreadState.ToString());
}

}}}catch(Exception e){}}


//COM ERROR.........

Uninitialized object (Exception from HRESULT: 0x80040007 (OLE_E_BLANK))

bhavin

GeneralPerformance analysis Pin
sujithkumarsl3-Apr-08 19:54
sujithkumarsl3-Apr-08 19:54 
GeneralRe: Performance analysis Pin
Dave Kreskowiak4-Apr-08 5:39
mveDave Kreskowiak4-Apr-08 5:39 
Questioncreating Shortcut keys Pin
sumanshakya3-Apr-08 19:24
sumanshakya3-Apr-08 19:24 
GeneralRe: creating Shortcut keys Pin
rah_sin3-Apr-08 20:45
professionalrah_sin3-Apr-08 20:45 
GeneralRe: creating Shortcut keys Pin
N a v a n e e t h3-Apr-08 20:46
N a v a n e e t h3-Apr-08 20:46 
GeneralReportViewer: Printing only on odd pages Pin
Maddie from Dartford3-Apr-08 19:05
Maddie from Dartford3-Apr-08 19:05 
GeneralXbox controller Pin
meister_skypie3-Apr-08 19:03
meister_skypie3-Apr-08 19:03 
GeneralRe: Xbox controller Pin
MarkB7773-Apr-08 19:43
MarkB7773-Apr-08 19:43 
QuestionShould I use Crystal Report in this case? Pin
Faysal3-Apr-08 17:41
Faysal3-Apr-08 17:41 
GeneralRe: Should I use Crystal Report in this case? Pin
carbon_golem4-Apr-08 2:46
carbon_golem4-Apr-08 2:46 
GeneralKey Board hooks Pin
ASysSolvers3-Apr-08 17:23
ASysSolvers3-Apr-08 17:23 
GeneralRe: Key Board hooks Pin
Giorgi Dalakishvili3-Apr-08 22:33
mentorGiorgi Dalakishvili3-Apr-08 22:33 
Questionhow to post an image Pin
netJP12L3-Apr-08 16:27
netJP12L3-Apr-08 16:27 
AnswerRe: how to post an image Pin
Vikram A Punathambekar3-Apr-08 19:24
Vikram A Punathambekar3-Apr-08 19:24 
Generalfinding error Pin
tittly3-Apr-08 16:18
tittly3-Apr-08 16:18 
GeneralRe: finding error Pin
CodingYoshi3-Apr-08 16:29
CodingYoshi3-Apr-08 16:29 
GeneralRe: finding error Pin
gspiteri3-Apr-08 16:37
gspiteri3-Apr-08 16:37 

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.