Wrox Programmer Forums
|
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 September 4th, 2005, 03:40 AM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default TAPI IN VC++

hi
sumone can plz help me......
how to use tapi in vc++ to make outbound calls

 
Old September 22nd, 2005, 05:21 AM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://mysite.verizon.net/robert.bamberg/csells.htm has
source code for the book "Windows Telephony programming"
written by Chris Sells. The source code includes an
easy framework for TAPI. This should help you get
started.
 
Old October 6th, 2005, 01:15 AM
Registered User
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to m_mudassir_saeed Send a message via Yahoo to m_mudassir_saeed
Default

#include <tapi.h>

void CALLBACK LineCallBackProc(DWORD hDevice,DWORD dwMessage,DWORD dwInstance,DWORD dwParam1,DWORD dwParam2,DWORD dwParam3)
{
}
HLINEAPP g_hLineApp;
HLINE g_hLine;
HCALL g_hCall;

DWORD g_dwAPIVersion;
DWORD g_dwNumLineDev;
void main()
{
 DWORD lRetVal;
g_dwAPIVersion = 0x00020001;
 lRetVal = lineInitializeEx(&g_hLineApp,(LINECALLBACK)LineCal lBackProc,NULL, "TapiMsgs",&g_dwNumLineDev,&g_dwAPIVersion,0);
 if(lRetVal != 0) prinf("lineInitializeEx failed...\n");

lRetVal = lineOpen(g_hLineApp, 0/*Here give DeviceID*/, &g_hLine, g_dwAPIVersion,0,1,LINECALLPRIVILEGE_OWNER,LINEMED IAMODE_INTERACTIVEVOICE,NULL);
 if(lRetVal != 0) prinf("lineOpen failed...\n");

lRetVal = lineMakeCall(g_hLine,&g_hCall, "8890"/*Dest Address*/,0,0);
 if(lRetVal != 0) prinf("lineMakeCall failed...\n");
}


/*Inshah Allah ... This code will run anywhere... in any windows.. using VC 6.0.. for any question m_mudassir_saeed AT yahooo DOT COM*/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of TAPI compad Beginning VB 6 2 July 20th, 2007 03:32 PM
TAPI: Detecting Dialed Digits [VC++] goyal_saurabh Visual C++ 4 September 14th, 2006 03:00 AM
TAPI how? vipin Visual C++ 0 March 22nd, 2006 02:12 AM
Need Help in using Tapi asi135 Visual C++ 3 January 31st, 2006 03:16 PM
convert VC++ 5.0 project to VC++ 6.0 MIDL ERR mdahd90943 Visual C++ 0 May 26th, 2005 08:57 AM





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