Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 10th, 2006, 09:54 PM
Registered User
 
Join Date: Mar 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default TAPI 3.0 : Problem in Digit Detection

Hi,

I am facing problem while detecting the digits from the telephone line over the modem.

The program is able to detect the digits, but the thing is that the program is sometimes able to detect dogits but sometimes it fails to do so. I mean in a single call some digits are detected and some digits are not. Secondly, sometimes it happends that the same digit is detected multiple times.

I have implemented this in VC++.

Here is the implementation of TE_DIGITEVENT,
case TE_DIGITEVENT :
{
   AfxMessageBox("Digit Detected");
  ITDigitDetectionEvent * pDigitEvent;

  hr = pEvent->QueryInterface(IID_ITDigitDetectionEvent, (void**)&pDigitEvent);

  if (S_OK != hr)
  {
      AfxMessageBox( "Failed to get the interface for digits");
       break;
   }
   unsigned char pucDigit = NULL;
   hr = pDigitEvent->get_Digit(&pucDigit);

   if(S_OK != hr)
   {
       AfxMessageBox( "Failed to get digits." );
       pDigitEvent->Release();
       break;
   }

   m_Digit=pucDigit;
   pDigitEvent->Release();
   break;
}

I can provide any other information if required so. but needs your support..

Thanks & Regards,
Qaisar Aftab Kiani





Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract a digit from specified position sektor Visual Basic 2005 Basics 10 June 9th, 2008 05:05 PM
Chap8, Browswer Detection,detect.js, Problem!Help burrashiva BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 3 July 30th, 2007 12:24 AM
TAPI Dial out problem hanter Visual C++ 0 September 13th, 2006 08:53 PM
7 Digit number jemacc SQL Server 2000 3 April 4th, 2004 01:02 AM
How to keep two digit after float number? Edward King Javascript 1 July 30th, 2003 01:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.