I am trying to write a program in VB 2005 Express that will read and write to a parallel port. I have found several links on the internet that recommend using inpout32.dll, including one link that provides a complete tutorial to write a program (http://www.codeproject.com/useritems/Inpout32_read.asp
). But when I create and run a program an exception error occurs whenever a function in the dll is called. The error is "SEHException was unhandled","External component has thrown an exception". The details indicate that the error code is -2147467259. I am running in debug mode in VB. I have moved the dll around to several locations, including c:\windows\system32, the same folder that contains the executable for VB, and every folder and subfolder within the project folder. I am running Windows XP Home Edition. Can you help me to find a way to read and write to the parallel port in VB 2005 Express?