Click to See Complete Forum and Search --> : porting Application to windowsNT/2000
shivank
May 14th, 2002, 01:12 PM
Hi All,
I have an application in which I am accessing the ports using inp() and outp() functions. I want to port my application to Windows Nt/2000. I tried some drivers available on the internet. But, I couldn't get my application to work with any of them.
Can anyone help me with this.
regards.
Stitch
May 15th, 2002, 07:46 AM
the functions you mention use protected instructions - but then I
imagine you already know that from the error messages you probably got
what sort of io are you trying to perform ? serial ports ?
Stitch
====================
shivank
May 15th, 2002, 09:04 AM
I am using serial as well as parallel port.I wanted to know that how do you normally access ports in Windows NT/2000.
thanks.
Stitch
May 15th, 2002, 09:45 AM
You need to look at the following functions (to begin with) CreateFile,
ReadFile,WriteFile. There's more to it than that, my best advice is to
look these functions up in MSDN. Basically you create a file handle
and tx/rx by writes and reads respectively.
Be prepared for a performance drop, the internal structure of Win NT/2k
doesn't lend itself to fast io
Stitch
====================
sidy
May 16th, 2002, 07:48 PM
Howdy,
I have started looking at a library:
http://www.beyondlogic.org/porttalk/porttalk.htm
It enables you to access low level hardware like serial ports and parrallel ports.
Good Luck and let me know how you go.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.