Solved

Transfering files via modem connection using AsyncPro

Posted on 2004-09-10
3
238 Views
Last Modified: 2010-05-18
Hi,

Can anybody help me with some sample code to transfer file via modem connection using AsyncPro (TApdTapiDevice, TApdProtocol)

Thanks,
Partha
0
Comment
Question by:perthg
[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
  • 2
3 Comments
 
LVL 7

Expert Comment

by:LRHGuy
ID: 12031378
I'm assuming you now how to drop a comport, protocol and tapi components on a form, and make all the propert connections.

Once you've done that...you hook the Tapi up to start transmitting at the right moment:

procedure TForm1.ApdTapiDevice1TapiPortOpen(Sender: TObject);
begin
  ApdProtocol1.StartTransmit;
end;


This button click would get Tapi dialing out, then start the protocol when connected:

procedure TForm1.Button1Click(Sender: TObject);
begin
  ApdTapiDevice1.Dial('212-123-3232');
end;

0
 

Author Comment

by:perthg
ID: 12032313
Thanks, but How do I transfer a file?
0
 
LVL 7

Accepted Solution

by:
LRHGuy earned 250 total points
ID: 12032461
If you drop the comport, tapi, and protocol components on the form, then set the properties.

The protocal property has two settings of interest:

  filename    (the file to send)
  protocol    (the protocol to use...like zmodem)

zmodem is a good idea, depending on where your connecting to, since it can 'autostart' on the other end, if supported.

Calling the StartTransmit method will send the file.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
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…

705 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