Solved

sned & receive data ,ProgressBar & EOF problem

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse package explorer vs project explorer view 2 224
VbScript to countdown to New Year's Day 6 77
Create .bat File 16 69
Java Inheritance super keyword use 8 29
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 different types of Android Layout and some basics of an Android App.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

679 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