Solved

TAPI lineOpen()

Posted on 1997-05-28
8
1,134 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 100 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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 describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

636 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