Link to home
Start Free TrialLog in
Avatar of dimot120498
dimot120498

asked on

How to make a phone call?

Can someone please send me a code for dialing any phone number using my modem? Or if it's not possible to send me a code,please send me an explanation how to do it by myself.
Avatar of saar2
saar2

Avatar of dimot120498

ASKER

saar2 , I want to thank u for the answer u gave me but,  I am having problems donloading it.Could u just give me  a small example of how to do it by myself???

Hey! Are you alife? And still need the information? I can send you a component to dial the phone using TAPI or RAS? Leave your e-mail.
SASSAS
Hey SASAS!
I've been looking for a component like that for a long time.
please send it to me
You can send it to this adress :
dimo_1_penny@hotmail.com

Thanx again...I hope it'll do the job.

I sent some components to you
Hey SASAS!
I have just doanloaded them from my e-mail acount, so now I will take a look at them.
Thank you very much.
SASAS, I have just tried to install those components that you sent me, and there have been some problems.The compiler keeps finding an error and it won't install the components.Did you have any problems instaling them,or am I not doing something right?
which version of Delphi do you use?
SASSAS
I use Delphi 4.0
I also use Delphi 4.0 and did not have any problems with implementing both components. As to TMSGVoc - use the second variant I sent to you - it is the variant I use in my programs. And remember that you do not have to install anything from comdrv32 - only put all files from the archive into the same directory as the tmsgvoc.
Try another time and send me the errors your compiler gives.

SASSAS
SASAS!
I did what you told me to do and the compiler keeps finding the same error:
"Types of actual and formal var parameters must be identical" , and it points at the line
" WriteToFile ( FComportHandle , DataPtr^ , nToSend , nSent, nil ); "
at the comdrv32.pas file.
Do you know what the problem is???
I have all the files of comdrv32 copied in the same directory with tmsgvoc.Then, I click Install Component, and install  MsgVoc.pas file. Am I doing the right thing??
Sorry. May be I sent you my component for C++ Builder.
Look in the "var section" of this procedure and replace nSent and nToSend types after the "Windows.pas" declaration of "WriteToFile"- in some versions it is Cardinal and in others Integer. (So if you have Cardinal - put Integer instead and if Integer - put Cardinal). If one of these parameters is  a procedure parameter - check to do the same thing in the procedure declaration.
I think - the same error might be in the other function where they use "ReadFromFile". In this case do the same thing.
I do not have this code with me right now - may be I look this code in the evening.
Thanx a lot SASSAS!
Now everything is working just great, thanx to you.I couldn't ask for more.
ASKER CERTIFIED SOLUTION
Avatar of sassas081597
sassas081597

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial