Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send data to LPT1 Port
Message
De
30/07/2000 05:39:59
 
 
À
30/07/2000 03:50:17
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00398584
Message ID:
00398590
Vues:
30
>can some body tell me how to
>send a byte or data to the LPT (&H378) port
>i have used outport() in C++
>and
>OUT port, data
>in QBASIC
>for those who dont know, it send data to the printer port eg u need there 01100110 ie 102 in decimal u will
>OUT &H378, 102
>

Direct access to the port requires that you use the Windows API to direct the output; opening a port for output as a file and using PRINT goes through the spooler. Pick up a copy of Dan Appleman's "Visual BASIC Programmer's Guide to the Win32 API" for a good summary of the process.

It's not safe to use direct port writing under NT and Win2K, which completely virtualize the I/O ports for a process, and may result in any of several I/O exception errors.

>any help will be highly appriciated.
>thanks
>rafiq
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
Répondre
Fil
Voir

Click here to load this message in the networking platform