Results 1 to 5 of 5

Thread: Couple Questions

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Posts
    25

    Question

    I am attempting to pass a binary file from vb on one pc through my serial port to another pc. The problem I am encountering is that I am unable to send a file which is larger then 32k. Would I need to use packets or would there be some funky cool way of taking care of this. If anyone would have some sites with code that accomplishes something like this it would be greatly appreciated(already seached forums and main site, couldn't find anything like this)

    In addition, is there a control in vb that gives you a little circular light type thing(think smiley guys without the faces) which I can stick onto a form?


    Have a nice day

  2. #2
    Hyperactive Member marnitzg's Avatar
    Join Date
    Oct 2000
    Location
    South Africa
    Posts
    372
    Are you using the mscomm control. If so try changing settings like setting the input and output buffers higher.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Posts
    25

    Unhappy Fraid I am already using mscomm

    The problem I am having is that mscomm is limiting my output buffer to 32k, I am unable to send any binary file larger then this. VB will not allow me to set a buffer size larger then 32k.

    -thx

  4. #4
    Hyperactive Member marnitzg's Avatar
    Join Date
    Oct 2000
    Location
    South Africa
    Posts
    372
    Hmm strange. I've never had that problem before. I thought Mscomm was supposed to make packets by itself. I guess you'll just have to do it for it then!

    Sorry.
    Anyone else got any suggestions?

  5. #5
    New Member
    Join Date
    Oct 2000
    Posts
    7

    Lightbulb sounds crazy but its a good challenge

    Try this. Get your binary file open and read 16k of it and write it out to another file. Name them say file one and file two then send it down to whoever needs it. At the other end you need a utility that just merges the two files into one. Try VB's file reading and writing stuff. I dont know if it'll work and how exactly you'd do it..but its a theory...you just test its practicality. If it works turn the code into an OCX or DLL for later reuse..good luck.Tell me if you succeed at: [email protected]

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