serg111
asked on
phone call
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?
RasDial() returns error "Can't fine phone book file" !?
What is the simple way to place phone call?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, I'm using RasDial() to make a Dial-Up Networking connection
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
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
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.