Solved

phone call

Posted on 2001-09-18
4
321 Views
Last Modified: 2013-12-03
I need the application to place a phone call to entered phone number.
RasDial() returns error "Can't fine phone book file" !?

What is the simple way to place phone call?
0
Comment
Question by:serg111
4 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6491895
RasDial() is for dialing with the intent of making a Dial-Up Networking (a.k.a. RAS) connection.  This is not what you want to use.

You need to use TAPI to dial a voice call.  Doing this is far beyond the scope of a 100 pt. question.  I'd suggest you get a copy of Chris Sells excellent book, Windows Telephony Programming.  It has everything you need to know about TAPI and dialing.

Of course, you can also bypass all that, open the serial port that has the modem on it, and send an "ATDT555-1212" dialing string.  but I don't recommend this due to potentials conflicts and incompatibilities.

0
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 100 total points
ID: 6493079
from
http://www.microsoft.com/windows2000/technologies/communications/default.asp
you can download simple TAPI dialer
More about tapi you can know from
http://people.ne.mediaone.net/brucep/tapifaq/
(unofficial TAPI FAQ)
0
 
LVL 2

Author Comment

by:serg111
ID: 6493466
Yes, I'm using RasDial() to make a Dial-Up Networking connection
0
 

Expert Comment

by:maluberian
ID: 11621948
serq,

make sure you are passing NULL to RasDial for PhoneBook and not the empty string. This is a pointer and therefore passing it a string will work but if you want to use the default phonebook you need to pass null.

Also, if you are using Win95 then you can't use this value at all (e.g. you MUST pass NULL) as Win95 keeps the phonebook in the registry.

Hope this helps,
maluberian
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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.  …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

861 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now