Solved

sned & receive data ,ProgressBar & EOF problem

Posted on 2003-11-30
5
216 Views
Last Modified: 2010-04-17
hi
I 'm writing a programm in VB with mscomm that send and receive data via modem and i want when open file in PC1 and read from file and send to another PC and write it in a file, show a progress bar and show that a file is sending from pc1 to pc2 with Progress bar.
i can  works in text mode and read binary mode from file and send file to another pc and i can another problem is that i can send text file but i can't receive another types of file(pics or exe file) .and i don't know how can in receive procedure, i can find end of file or recognize my all data of file have been received and close received file. that when pc1 send another file i can save this file too. because if i can't close old file i can't save new fie
please help me.
0
Comment
Question by:anooshe
5 Comments
 
LVL 15

Accepted Solution

by:
Raisor earned 50 total points
ID: 9846414
Hi,

Enter a small routine that checks desired directory for desired filename ... if exists abort or write to temp-file leaving a flag somewhere that the elder file is not up-to-date for next access ...

... but why are you working with textfiles? why aren't you using one database on central server?

Best regards, Raisor
0
 
LVL 9

Assisted Solution

by:bhagyesht
bhagyesht earned 50 total points
ID: 9848991
in the send procedure once u get the EOF send some delimiter like ~^~^~ in the recieve if u get this pattern u have got the end of the file.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
for loop with Set 4 45
Excel object stays open 19 65
triangle challenge 4 77
mapBully challenge 6 88
A short article about a problem I had getting the GPS LocationListener working.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now