Results 1 to 3 of 3

Thread: Send Binary data on comm 1 using mscomm32.ocx

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    2
    I am having a problem sending binary data on either comm1 or comm2.

    In English windows, I have no problem, I am communicate with my unit, but in Chinese windows it won't work.

    EG.

    Here is my code that I am using :

    Dim Message as string

    Message = Chr$(&HFC) + Chr$(&H3) + Chr$(&H8F) + Chr$(&H0) + Chr$(&HFD) + Chr$(&H73)

    mscomm1.output = message

    This works only in English Windows, not Chinese Windows.
    Where I sould be getting FC 03 8F 00 FD 73 on a port monitor program in english I am getting 00 00 00 00 00 00 instead.

    I know there is something about the DBCS in Chinese windows but I do not know what to do to convert properly so that I get the right data as if sending in english windows.

    Please help!


    Regards: Steve

  2. #2
    Guest

    answer


    dim Message(5) as byte

    Message(0)=&HFC
    Message(1)=&H3
    Message(2)=&H8F
    Message(3)=&H0
    Message(4)=&HFD
    Message(5)=&H73

    mscomm1.output=Message

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    2

    Talking Send Binary data on Comm1 using mscomm32.ocx


    Maexchen;

    Thanks a mill, it worked fine. So now I have to redesign my send routine.

    I read the help file but I just never really understood what they meant by using a byte array. It was a bit vague.

    Thanks once again. Perhaps one day I can help you too.


    Regards: Steve

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