crazygrey said:I know it has been a while on this thread but I'm running to the same problems but with vc++. I'm trying LPT1 to vc++ 2005 express edition, and I'm using Windows XP SP2 and have the administrative rights of the computer. I downloaded "inpout32.dll" and placed it in C:\Windows\system32 directory and basically used:
#import "C:\Windows\system32\inpout32.dll"
and added inpout32.lib as an additional dependency (Project properties --> Linker ----> Input). However, when I try to run the program I get this error: "fatal error C1083: Cannot open type library file: 'c:\windows\system32\inpout32.dll': Error loading type library/DLL."
I have been struggling with this for few days now and I have searched alot for my solution but I noticed the author of this thread found a solution to interface it with vb, so any helpful hints will be appreicated.
Thanks
hi,
I dont use VB 'C' or relative coding for my programs, but why are you trying to import the 'inpout32.dll' ??.
As it resides in the Win/System as a DLL, your program will call it as any other Windows system DLL.
You need this DLL as Win XP normally , 'blocks' the VB calls to the parallel port, the DLL is one way to bypass this block.
Just make sure that the inpout32 is referenced in the VB program module.
Hope this helps.