Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Text File Transfer Program


Message #1 by "Ola" <ola@o...> on Fri, 15 Feb 2002 15:58:03 -0000
Ola,

You need to use the MS Comm Control or other third
party control to handle your modem communications.

I wrote an application using a simliar control a 
few years back.  The programming application is 
simple once you learn how to configure the 
control with the correct modem settings
and such.  Hyperterm was a big help in this.

Here is some pseudocode for the server and
client sides:

Server Code
-----------
Set COM port
Set Baud, Parity bit, Stop bit, etc
Open Port
Set Interrupt to Modem
   (usually the command is like ATV... or
    something like that to enable listening
    on phone line)

In receive event...
   read from buffer
   process data.

Client Code	
-----------
Set COM Port
Set Baud, Parity bit, Stop bit, etc
Open Port
Send Interrupt to check if modem works
   (Usually ATZ)
Send Dial Command
   (usually something like ATDT 555-1212)

Once connection is made...you can use
the output method to send data.

Here is a good summary of the above:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/htm
l/vbconusingcommunicationscontrol.asp

Please watch for wordwrapping in the URL above.

Hope this helps,

Cardyin

-----------------------------------------
Cardyin Kim
Client/Server and Web Development Analyst
San Antonio Community Hospital
Upland, California
ckim@s...        (xxx) xxx-xxxx
-----------------------------------------


-----Original Message-----
From: Ola [mailto:ola@o...]
Sent: Monday, February 18, 2002 7:14 AM
To: professional vb
Subject: [pro_vb] Re: Text File Transfer Program




Hello Yoel,

I want to explicitly call a server with a modem
For the file transfer

Regards and Thank you
Ola



-----Original Message-----
From: Yoel Pedersen [mailto:y.pedersen@g...] 
Sent: 18 February 2002 09:46
To: professional vb
Subject: [pro_vb] Re: Text File Transfer Program

Hello Ola,

Do you want to use an internet connection based on a modem, or do you
want 
to explicitly call a server with the modem? If you just want the
internet 
connection, you can make the modem connection the default connection of 
the system and all requests for the Internet will cause Windows dial the

ISP. Then you can just use the MSInet control to transfer the file..

Regards, Yoel Pedersen




to unsubscribe send a blank email to $subst('Email.Unsub')...

  Return to Index