If it can be done with C++, it can be made into a DLL.
PS: Learn how to do it in C++ then export it as a DLL.
EDIT: Scratch that, here you go:
http://logix4u.net/Legacy_Ports/Parallel_Port/Inpout32.dll_for_Windows_98/2000/NT/XP.html
You'll still need to create a .DECLS.
It's as easy as it can get. You have Inp32() and Out32().
PS: Learn how to do it in C++ then export it as a DLL.
EDIT: Scratch that, here you go:
http://logix4u.net/Legacy_Ports/Parallel_Port/Inpout32.dll_for_Windows_98/2000/NT/XP.html
You'll still need to create a .DECLS.
It's as easy as it can get. You have Inp32() and Out32().