comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com
Subject: Re: Parallel Port
Date: 2000/03/21
Date: 2000-03-21T00:00:00+00:00	[thread overview]
Message-ID: <auSB4.167$2K6.15129@news.pacbell.net> (raw)
In-Reply-To: 38D7691B.4E5F4177@shom.fr

>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.




  reply	other threads:[~2000-03-21  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-19  0:00 Parallel Port Philippe Bourzeix
2000-03-19  0:00 ` Dale Stanbrough
2000-03-20  0:00   ` Philippe BOURZEIX
2000-03-19  0:00 ` Ed Falis
2000-03-20  0:00   ` Philippe BOURZEIX
2000-03-20  0:00     ` Gautier
2000-03-20  0:00       ` Jerry van Dijk
2000-03-20  0:00         ` Gautier
2000-03-21  0:00 ` Philippe BOURZEIX
2000-03-21  0:00   ` tmoran [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-01-17  9:18 PARALLEL PORT Szymar
2000-03-05  0:00 Parallel port Philippe Bourzeix
2000-03-05  0:00 ` Tarjei Tj�stheim Jensen
2000-03-05  0:00 ` Jerry van Dijk
2000-03-06  0:00   ` Philippe BOURZEIX
2000-03-06  0:00     ` Philippe Bourzeix
2000-03-06  0:00     ` Ted Dennison
2000-03-06  0:00       ` tmoran
2000-03-06  0:00         ` Philippe Bourzeix
2000-03-07  0:00           ` tmoran
2000-03-06  0:00       ` Gisle S�lensminde
2000-03-06  0:00         ` Ted Dennison
2000-03-06  0:00         ` Philippe Bourzeix
2000-03-08  0:00           ` Gisle S�lensminde
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox