Results 1 to 3 of 3

Thread: Need help to transfer file through serial port !!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    6

    Need help to transfer file through serial port !!!!

    hi All,

    i need help regarding to my probs.

    I have to transfer a text file through serial port (COM1 ) to other connected end (system)

    Give me some idea about this. I am newer to VB so plz help me as soon as possbile.

  2. #2
    Lively Member
    Join Date
    Jul 2007
    Posts
    98

    Re: Need help to transfer file through serial port !!!!

    you will have to use an API function to open the port. The file you want to send have to be converted to array of bytes , on the other side this array of bytes has to be returned to its original form.

    I can give you the code that handles the serial port opening and closing
    and some code for reading and writing data to it but it is in C++

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Need help to transfer file through serial port !!!!

    Use the MSComm control. All the code you need is in the help file examples (MSComm and OnComm.)
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width