Sign in to follow this  
Followers 0
DVDRW

Cant get Inpout32.dll to work

5 posts in this topic

#1 ·  Posted (edited)

Hi!

I want to set or read LPT port bits. Placed Inpout32.dll to script folder. Is there something more should i do?

This should send all LPT data bits to high level?

DllCall( "INPOUT32.dll", "int", "out32", "int",0x378, "int", 255 )

When i launch that, nothing happens, my multimeter still shows 0V on parallel port :)

0x378 address is right because DIK74 software works without problem + my multimeter shows 3,3V.

OS is WinXP Pro SP2

Edited by DVDRW

Share this post


Link to post
Share on other sites

Have a look at this example from suthers.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Yep i started from there.

Set all bits to 1 and read result was all 0s :)

Tried two different computers

Edited by DVDRW

Share this post


Link to post
Share on other sites

Works for me, I've just run

DllCall( "E:\inpout32.dll", "int", "Out32", "int", 0x378, "int", 255)
and metered the data pins 0-7 as high and then used 0 as the last param and confirmed data pins 0-7 go low.

Share this post


Link to post
Share on other sites

Thanx got it work!

"INPOUT32.dll" caused the problem. "c:\INPOUT32.dll" worked

I heard that when script location is the same place as file then you wont need write full path. It seems that is not true

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0