Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

TAPI lineOpen()

Posted on 1997-05-28
8
Medium Priority
?
1,142 Views
Last Modified: 2013-12-03
Thank You for advise, but it's not the solution. I think that TAPI version 1.4 must work too. And I can't use lineInitializeEx(), because is's not supported in Win95 (it is written in MS Visual C++ help), so I must use lineInitialize(), where LINEINITIALIZEEXPARAMS is not used.
0
Comment
Question by:shvetsov
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 300 total points
ID: 1397680
When you call lineInitializeEx() function to initialize the application's use of TAPI, it returns the number of line devices available to the application (lpdwNumDevs).

Device identifier values range from zero to one less than the number of devices present.

0
 

Author Comment

by:shvetsov
ID: 1397681
Edited text of question
0
 

Author Comment

by:shvetsov
ID: 1397682
Adjusted points to 100
0
Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

 
LVL 23

Expert Comment

by:chensu
ID: 1397683
Check your version of TAPI to see if it is 2.0 or later.
0
 

Author Comment

by:shvetsov
ID: 1397684
Edited text of question
0
 
LVL 23

Expert Comment

by:chensu
ID: 1397685
I am not sure what the difference is. I suggest checking each parameter you pass to lineInitializeEx() function to make sure they are correct, specially LPLINEINITIALIZEEXPARAMS lpLineInitializeExParams. Also, try higher version. You can download the latest version (2.1) from Microsoft web site.

0
 

Author Comment

by:shvetsov
ID: 1397686
Edited text of question
0
 
LVL 23

Expert Comment

by:chensu
ID: 1397687
OK. lineInitialize also returns the number of line devices.

There is an example code called 'dialit' on Microsoft web site. It may be helpful for you. (It uses lineInitialize function to do the initialization.)

dialit:
Uses the CTapiConnection class. It provides an easy way to initialize TAPI, connect, and make a voice-based telephone call.

http://www.microsoft.com/WIN32DEV/NETWRK/CTA2669B.ZIP

0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question