Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a better mscomm?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00443243
Message ID:
00447156
Vues:
11
>I sort of have this working now. Two problems...
>
>1. When I change the senders RTS line, the receiver (VB activex DLL) oncomm fires three times.
>

Sure - you're causing multiple events since you're 'pinging' the handshake line - OnComm sees two transits of the CTS line (RTS crosses CTS), which issues two comEvCTS, and probably a Send buffer not full (comEvSend) report.

>2. When the com activities are done I need to return about 2K in text. Can I send that back
> from the dll?

Yep - you can adjust the rThreshold and InBuffer size if you like, you need not respond to each discrete character received in order to avoid buffer overrun with the default 512 byte buffer and your data rate, unless it's a very slow and busy system.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform