Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Borland C 5.0 I/O problems!

1 view
Skip to first unread message

Mr S. Mack

unread,
Oct 1, 1996, 3:00:00 AM10/1/96
to

Can anybody help me.
I am currently using Borland c++ 5.0 and I am having problems
using 'inport' 'outport' 'outportb' etc.
These programs work under other incarnations of BC but
since going over to 5.0 with 32 bit they arent recognised,
the programs all work ok otherwise.

Jeff Jenkins

unread,
Oct 1, 1996, 3:00:00 AM10/1/96
to

Why would you expect this to work? Are these RTL functions supported under
Win32?
As I recall, these are not supported under Win32. The Win32 API has
specific APIs that deal with type of access. Check the help-file and check
the compatibility of these RTL functions.

-- jrj

Mr S. Mack <stm...@liverpool.ac.uk> wrote in article
<DyL9n...@liverpool.ac.uk>...

Matt Arnold

unread,
Oct 2, 1996, 3:00:00 AM10/2/96
to

stm...@liverpool.ac.uk (Mr S. Mack) writes:

>Can anybody help me.
>I am currently using Borland c++ 5.0 and I am having problems
>using 'inport' 'outport' 'outportb' etc.
>These programs work under other incarnations of BC but
>since going over to 5.0 with 32 bit they arent recognised,
>the programs all work ok otherwise.

Win32 programs are hardware-independent and are *not* permitted to
perform direct I/O or handle interrupts, etc.. Thus, functions like
inportb(), etc. are not available in Win32 compilers. This is a
*basic* fact of Win32 programming. If you need to touch hardware,
you'll need to write a device driver (a VxD for 95 or a "kernel-
mode" driver for NT).

Please post any further questions to Windows programming newsgroups
such as comp.os.windows.programmer.win32. This topic is way to
platform-specific for discussion in comp.lang.c++.

Regards,
-------------------------------------------------------------------------
Matt Arnold | class Disclaimer {
mar...@netcom.com | public:
Boston, MA | Disclaimer() { opinion = L"Mine!"; }
C++, MIDI, Win32/95 developer | private:
e fan | wchar_t* opinion; };
------------------------------------------------------------------------

Hans IJntema

unread,
Oct 4, 1996, 3:00:00 AM10/4/96
to

Mr S. Mack wrote:
>
> Can anybody help me.
> I am currently using Borland c++ 5.0 and I am having problems
> using 'inport' 'outport' 'outportb' etc.
> These programs work under other incarnations of BC but
> since going over to 5.0 with 32 bit they arent recognised,
> the programs all work ok otherwise.

They are not supported in NT. For backwards compatability, they are
supported in Win95, however, this can or will change with
succesors/upgrades of Win95. Win32 - protectes OSses do not allow
hardware IO. You should write a VxD.

Regards,

--
---------------------------------------------------------------------
Hans IJntema Philips Research Laboratories
Eindhoven
Building: WO 02 Prof. Holstlaan 4
Phone: +31 40 274 3325 5656 AA Eindhoven
Fax: +31 40 274 2630 The Netherlands
E-Mail: ijn...@natlab.research.philips.com

0 new messages