-- jrj
Mr S. Mack <stm...@liverpool.ac.uk> wrote in article
<DyL9n...@liverpool.ac.uk>...
>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; };
------------------------------------------------------------------------
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