inp & outp in windows 3.1 and windows Nt

inp & outp in windows 3.1 and windows Nt

Post by Oscar CALEF » Wed, 17 Apr 1996 04:00:00



Hi reader
I would like to use the c function inp() and outp() under windows 3.1
and windows nt, I can visual c 1.5 for wfw or visual c 2.0 for NT.
I have to use a card that use the address 0x300 using inp and outp.
thanks for any help
Best Regards
Oscar CALEFI

 
 
 

inp & outp in windows 3.1 and windows Nt

Post by Stefan Schuet » Thu, 18 Apr 1996 04:00:00



> Hi reader
> I would like to use the c function inp() and outp() under windows 3.1
> and windows nt, I can visual c 1.5 for wfw or visual c 2.0 for NT.
> I have to use a card that use the address 0x300 using inp and outp.

Hi Oscar,

under Windows 3.1 I use with Borland C++ 3.1

my_data_byte = inportb(0x300);
        or
outportb(0x300, my_data_byte);

Under Windows NT it doesn't work this way. There should be an
article about it in Dr. Dobbs Journal of May '96.

Stefan