I need some help

I have put together a electronic circuit which gives you 8 inputs by following instructions in a book i bought called "Easy PC Interfacing" unfortunatly all the software to read in the data is written in Qbasic in the book which is useless for what i want to do.

The Code in the book uses
Out &H37A
INP (&H379)
to read in data from the hex addresses of the inputs. I was wondering if their is anyway of doing this in VB.