|
-
Sep 21st, 2000, 03:07 PM
#1
Thread Starter
New Member
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!
-
Sep 21st, 2000, 06:00 PM
#2
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
-
Sep 22nd, 2000, 08:28 AM
#3
Thread Starter
New Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|