Solved

How to Programm PCAnywhere-Like...

Posted on 2000-03-18
8
265 Views
Last Modified: 2010-04-04
     Suppose that, which what I really want to , I want to gain more experience  on delphi programming. What I want is to programm that can purform some tasks like PCAnywhere. The main point is that I want to create my own program that can  monitor incomming call and auto-answer such call And to perform files transferring through a wire. How can I accomplish such a task? I just have a rasapi32.pas , which is a interface unit to rasapi32.dll that can perform remote dialing with specified user name and password, on the other hand, client side. How can I create program to be server side that can automatically accept incoming call and authenticate such call to that programm. Moreover, If  a connection can be established. How can I transfer file through a wire. I need your suggestion that can guide me through the rest of these tasks or to any website the published fully documented programm like this. I want to know it clearly. Pleaseee give me a hand, and I'll give you 200 points if you answer me impressively.
0
Comment
Question by:Delphi_Expert
8 Comments
 
LVL 1

Expert Comment

by:darkloser
ID: 2632143
Win9X have a dialup server in Plus pack u can use it to answer of calls.
If u have a ppp connection you can use ftp server/client www server or some to get/put files. More info about it i can find on fpiete www page :)
best regards
0
 

Accepted Solution

by:
Portal earned 200 total points
ID: 2632661
For Modem connection and answering have a look at a TAPI component like:
http://www.pf.lv/Delphi

To make a call:
tapicom.phoneNumber := '1 2345 6789'
tapicom.makeCall

To answer a call:
tapicom.waitForCall

The component has writeLargeBlock and readLargeBlock methods which allow you to transfer files, messages, screen captures etc.
For example to send a file:
buffer : array[0..bufferSize] of byte;
ffile : TFileStream;
ffile := TFileStream.create(fmOpenRead,'Filename here');

repeat
   r := ffile.read(buffer,bufferSize);
   tapicom.writeLargeBlock(buffer,r);
until r <> bufferSize;

To receive the file do a similar thing with readLargeBlock.

My suggestion is to practice transfers between 2 computers using WSocket from fpiete and when your ready add code to transfer via TAPI and probably a more professional component suite like Async Pro from Turbo Power.

You have got a lot of work ahead of you. For example screen capturing, compression, speed considerations etc. If you want to have a look at the _source code_ for remote control software have a look at Virtual Network Computing at:

http://www.uk.research.att.com/vnc/

Good Luck!
0
 

Expert Comment

by:HamidHossain
ID: 2632739
Lestning ...
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 1

Expert Comment

by:yk030299
ID: 2634661
listen
0
 
LVL 1

Expert Comment

by:darkloser
ID: 2639769
See on torry.ru page
nblib.zip for 16 bit  and nblib32.zip i think can help you :)

regards
0
 
LVL 1

Expert Comment

by:darkloser
ID: 2639776
ops sorry wrong window :)
0
 

Author Comment

by:Delphi_Expert
ID: 2650142
Thank you very much indeed. You help me through my long last problems. I now have gain more experience on delphi programming. Hope anyone interested in this result get this too.
0
 
LVL 1

Expert Comment

by:darkloser
ID: 2653402
do u write a Dialup server :)
I search sources of dialup server.
Thanks in advance
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi: how to implement a User Shortcut mapper? 1 118
Making delphi communicate with a c# service 16 111
Multiple image collision 13 80
Graphics32 under Delphi 10.1 Berlin 2 98
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

840 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