Solved

sned & receive data ,ProgressBar & EOF problem

Posted on 2003-11-30
5
218 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

813 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

9 Experts available now in Live!

Get 1:1 Help Now