Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Writing data to lpt port using CreateFile(), is it possi
Message
De
16/04/1998 04:19:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/04/1998 16:42:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00092263
Message ID:
00092428
Vues:
31
>>>I want to write data to lpt1 port to control PCU customer display.
>>>The only way to do using vfp native commands is "run copy fn lpt1"
>>>but this is too low for disply control.
>>>
>>>So the only possibility is to use API.
>>
>>Did you try COPY FILE (filename) TO LPT1:
>
>I run (w95 osr2, vfp build 415)
>
>copy file c:\autoexec.bat to lpt1
>
>a message
>
>c:\vfp\lpt1 already exists, overwrite it?
>
> appears
>If i choose Yes, an Invalid seek offset error occurs!
>
>Only
>
>!copy file c:\autoexec.bat to lpt1
>
>works, but this is TOO slow for PCU display and requires lpt1 to be captured.
Hi Andrus,
If you're trying to print plain ASCII such as .prg or .txt you could use :
set headings off
set console off
type myfile.ext to printer [prompt]
set console on
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform