From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8fde36cb1870c22 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Reading/writing LPT1 Date: 2000/08/21 Message-ID: <8nrfv1$ggc$1@nnrp1.deja.com>#1/1 X-Deja-AN: 660734650 References: <8npkbf$bhd$1@nyheter.chalmers.se> <8nqkbn$dia$1@nyheter.chalmers.se> X-Http-Proxy: 1.0 x53.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Aug 21 14:56:45 2000 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-08-21T00:00:00+00:00 List-Id: In article <8nqkbn$dia$1@nyheter.chalmers.se>, "David Boman" wrote: > I'm running Windows2000 on Intel. Then you will have to do it the same way a C programmer would do it. Either open up "LPT1:" as a file and use standard library IO routines (In our case, probably Ada.Text_IO or Ada.Sequential_IO), or find and make the corrent calls in Microsoft's Win32 facilities. > I don't know if Windows2000 allows direct IO, I've heard that > WinNT/Win2000 is quite strict with this but I'm not sure. Yes it is. Either you use the Win32 API to change the settings, or you write and install your own device driver. Is this something that you are currently doing in Basic on this platform, or are you trying to change languages and OS'es at the same time? If the former, then the easiest thing to do would be to figure out what Win32 calls your Basic statements get mapped to. If the latter, then you have really asked a Win2K question, not an Ada question (and thus should probably take your question to a more appropriate newsgroup). -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/ Before you buy.