Solved

Transfering files via modem connection using AsyncPro

Posted on 2004-09-10
3
237 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 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