• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

communication on LPT1 under W9x

I wolud like to connect a potmeter-table and communicate with it under W9x. Fist of all I have to locate the base-port for LPT1
and then send and read datas to it's status,command and control port.
Is there any simple method to communicate with the port like
in DOS (simple in/out assembly instuctions)?
Or should I use Win32 API functions?
If yes, which ones?
Or should I write a client VXD?
If yes, how?
A sample would bee fine.

Thanx.
0
basszame
Asked:
basszame
1 Solution
 
byangCommented:
You can use in/out instructions just like in DOS. Win95 gives you access to ports.
0
 
chensuCommented:
You can use Win32 Communication functions.

Communications
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/psdk/winbase/commun_4m7n.htm

The following article talks about serial communications, which is similar to parallel communications.

Serial Communications in Win32
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/techart/msdn_serial.htm

Also see

The PortIO95 Parallel Port Interface
http://dialspace.dial.pipex.com/town/close/ec63/portio95.htm

Parallel Port Central - Programming
http://www.lvr.com/parport.htm#Programming
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now