Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSCOMM control
Message
From
18/05/2001 00:13:02
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00508394
Message ID:
00508584
Views:
23
>Hey Everyone,
>
>In the remarks section of the OutPut property of the MSCOMM control's help file, it says:
>
>To send binary data, you must pass a Variant which contains a byte array to the Output property.
>
>How do I do that from VFP? Anyone know?


Just pass a string - a VFP string is treated as a byte array variant through the COM interface. The key is that you aren't passing a null-terminated (CString) type string to the output property.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform