Jump to content

Recommended Posts

Posted

Hi,

I've written a short Script using the inpout32.dll for accessing the Parallelport. With 32 Bit Win it works.

Now I changed to Win 7 64 Bit and i tried to use the inpout64x.dll. But it doesn't work.

The result of the DLLcall is always "0".

Problems could be:

- Convert the 32Bit Variable into 64Bit Variable

- use of hwinterfacex64.sys. Where to copy, how to use?

Perhaps you can help me getting the script to work well.

Many thanks.

Informations about the dll:

http://logix4u.net/Legacy_Ports/Parallel_Port/Inpoutx64.dll_for_WIN_XP_64_bit.html

Parallelport_Tester.zip

Posted (edited)

1. Get the better (working) versions here -> 'InpOut32 and InpOutx64'

2. Check for @AutoItX64, if that is non-zero, then load the inpoutx64 DLL, otherwise load inpout32

3. Make sure the driver installed ($aRet[0] will be non-zero if it is installed):

$aRet=DllCall($DLL,"bool","IsInpOutDriverOpen")

4. Use the right calling conventions:

Input:

$aRet=DllCall($DLL,"byte","Inp32","ushort",$iIOPort)

Output:

DllCall($DLL,"none","Out32","ushort",$iIOPort,"byte",$iData)

Note also that there are now word and doubleword variants of the input/output functions.;)

By the way - thanks for making me aware of this. Using this I've created a simple I/O Functions UDF. I've combined it with trancexx's '_Beep' function to make a Windows 7 x64 working speaker-Beep function :)

P.S. What modern motherboard actually has a parallel port? Those died out years ago, partially because of the ancient interface, and probably because using the parallel port sucked up 100% of the CPU (at least on XP)!

*edit: I/O Functions UDF link

Edited by Ascend4nt

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...