Solved

sned & receive data ,ProgressBar & EOF problem

Posted on 2003-11-30
5
222 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
[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
5 Comments
 
LVL 15

Accepted Solution

by:
Ralf Klatt 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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…
Six Sigma Control Plans

635 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