Lucas, direct access to the hardware is barred when running under XP (and many other operating systems). You have to either: 1/ Write a Kernel mode device driver to access the port on you behalf, and present an API to the APP 2/ Mess with the IOPM (IO Protection Mask) to allow a non-kernel mode program (your application) to access the hardware 3/ Download a program that messes with the IOPM for you HINT: Option 3 is best! Google for IOPM or PORTTALK or USERPORT and the solution will present itself. Regards, Peter Moreton > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Lucas Hartmann > Sent: 16 January 2004 20:52 > To: PICLIST@MITVMA.MIT.EDU > Subject: [OT:] Paralel Port Control Under Windows XP > > > Hello, > > I'm desining a small application that connects the > PIC18F452's PSP module to > an EPP paralel port. > > How do I set the port to work in EPP mode and how do I > send/receive data > from the port? I'm using Borland C++ Builder 6. > > I'd rather solving this via API calls than using third party > components. > > Serial port is well doccumented in the compiler, but I've > found nothing > about paralel port under the compiler help and in MSDN. > > Thanks, > Lucas Hartmann > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu