Board index » delphi » Accessing the parallel port in XP
JoeAverage
![]() Delphi Developer |
Accessing the parallel port in XP2006-11-28 01:48:57 PM delphi269 Sorry but this is technical. BTW, CodeGear is an interesting name, looks like the IDE business will now be focusing on automotive security! Anyway, some programmers may remember in the good old days of V3 and Win95/98, you could access the parallel port by using a simple function called outportb (b stands for byte), inportb, outpw and inpw (w=word). Then Windows 2000 and XP came along and direct access to ports became disabled since this allowed a flaky program to crash the operating system if the wrong memory area was selected. Sounds reasonable ... except if you have any old hardware devices like EPROM programmers which need the parallel port to work. The website below is a program which enables the parallel port for certain selected programs. There is even a Delphi example. www.direct-io.com/ The question is, is it possible to have a Dephi/CBuilder program enable direct access to the parallel port while it is running and then disable it when finished. Starting the DirectIO program and having to ship it with each product seems cumbersome. |