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 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,407c579dbfad5c2c X-Google-Attributes: gid103376,public From: tmoran@bix.com Subject: Re: Parallel Port Date: 2000/03/21 Message-ID: #1/1 X-Deja-AN: 600591480 References: <38D7691B.4E5F4177@shom.fr> X-Complaints-To: abuse@pacbell.net X-Trace: news.pacbell.net 953676806 206.170.2.45 (Tue, 21 Mar 2000 14:13:26 PST) Organization: SBC Internet Services NNTP-Posting-Date: Tue, 21 Mar 2000 14:13:26 PST Newsgroups: comp.lang.ada Date: 2000-03-21T00:00:00+00:00 List-Id: >Is there any library with such outportb function in the ada world ... Lots. No single one is standard for the simple reason that many systems do their IO in different ways than Intel. In MS VC++ there are routines _inp and _outp that you should be able to use with the declarations: function inp(port:integer) return integer; pragma import(C, inp, "_inp"); procedure outp(port:integer; value:integer); pragma import(C, outp, "_outp"); and you should link with the appropriate MSVC++ library. >From the Help: LIBC.LIB Single thread static library, retail version LIBCMT.LIB Multithread static library, retail version MSVCRT.LIB Import library for MSVCRT.DLL, retail version As has been noted, Microsoft's NT and 2000 probably will not allow this but it does appear to work in W95.