Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSCOMM control
Message
De
18/05/2001 00:13:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00508394
Message ID:
00508584
Vues:
22
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform