Has anyone had any luck getting TAPI to work with C#? I'm running into some fairly strange problems.
I added the Telephony class to my toolbox, then dragged an XTel object to my form. Then I added a button. Here's the method I attached to the buttons click event:
private void callButtonclick(object sender, System.EventArgs e)
Everything compiles fine and comes up. Then I click the button and I get the Speech Engines for the Telephone dialog box. COOL. The next thing I should see would be the Call Dialog but instead I get an error:
System.NullReferenceException: Object reference not set to an instance of an object.
Some things I can do. I can set the AnswerAfterRings property and I can get the MaxLines property. However if I try the MakeCall() method directly I get the NullReferenceException again.
I did a search for TAPI on The Code Project and found S.S. Ahmed's VB Tapi program, and that works fine for me.
I'm sooooooooooo confused.