[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1150
  • Last Modified:

TAPI lineOpen()

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
shvetsov
Asked:
shvetsov
  • 4
  • 4
1 Solution
 
chensuCommented:
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
 
shvetsovAuthor Commented:
Edited text of question
0
 
shvetsovAuthor Commented:
Adjusted points to 100
0
Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

 
chensuCommented:
Check your version of TAPI to see if it is 2.0 or later.
0
 
shvetsovAuthor Commented:
Edited text of question
0
 
chensuCommented:
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
 
shvetsovAuthor Commented:
Edited text of question
0
 
chensuCommented:
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

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now