Results 1 to 3 of 3

Thread: MSCOMM32.OCX Help!

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    2

    Post

    Hi y'all,

    I have a smidgen of a problem. I have written a program in VB5 that sends messages to another computer, connected via the serial cable on COM2. The only problem I have, is that it only sends and receives 8 text characters! Is there a way of sending more than 8 characters? Do I need to send the other characters in blocks of 8? I am using the Microsoft Cusotm Control MSCOMM32.OCX.

    It'll be great if you could help!


    ------------------
    Cheers,
    Chris M

    "Your BESTEST Buddy!"

  2. #2
    New Member
    Join Date
    Mar 2000
    Posts
    4

    MSComm

    As far as I know there is a Input Len thing that defines the length of the amount of charcters you can use. Anywa How do I know? I am on this site to try and find help myself. I need to write a program to poll a datalogger every second using MSComm. It is just that I noticed you are using VB 5.0 sam as myself. Is it Pro or ordinary? Anyway I have ordianry and I need to knw is there a special way to rgister the ocx. Also any help with code would be appreciated. Thanks

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    to retrieve all the data from the On ComEvReceive events by set the InputLen=1 and to determine when to strat download all the received data from the buffer...this can be done by manupulate the value of the MSComm1.InBufferCount (this use to determine how many character have been received by the MSComm control.

    Hope this can help!

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