Solved

Parallel port communication (dll, ocx) ?

Posted on 1998-02-12
8
413 Views
Last Modified: 2008-02-01
I need to comm' with the PC's parallel port. Anyone now of a way to do this ? The MS-Comm control is serial port only!
Preferably for 32 bit solution.
0
Comment
Question by:zok
  • 4
  • 2
  • 2
8 Comments
 
LVL 3

Accepted Solution

by:
rmichels earned 70 total points
ID: 1456953
Under Windows 95, I have written C code to access the parallel port, but it had to be done in Visual C++ 4.0 and they removed the port access functions in VC 5.0.  Under NT you need a device driver to do it.

In VB Prog Journal, I have seen the following add:

WinRT OCX, Hassle Free Hardware Control
Bluewater Systems. Inc
800-962-2114
e-mail: info@bluewatersystems.com
www.bluewatersystems.com

I have NOT used this control.
0
 
LVL 7

Expert Comment

by:kamall
ID: 1456954
If rmichels's answer will not help you solve the problem, I have a DLL that enables you to read and write to the parallel port as well as to the other computer ports in VB.
Give me your e-mail address, and I will send it to you with a sample project. (Please unlock the question first).
Regards
0
 
LVL 3

Expert Comment

by:rmichels
ID: 1456955
ARe the requirements to work under NT? Because if so, the DLL solution will not work.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 7

Expert Comment

by:kamall
ID: 1456956
You are right rmichels. The DLL solution will only work under Win95, and what you have suggested regarding WinRT is one of the feasible solution for Win NT.
0
 
LVL 5

Expert Comment

by:dirtdart
ID: 1456957
CreateFileEx is supposed to work with parallel ports, serial ports, files, mailslots, named pipes, and almost anything else.  I have used it to create a driver for a custom RS232 device.  If you like, I can provide you with some code for that as an answer.
0
 
LVL 3

Expert Comment

by:rmichels
ID: 1456958
but can you actually control all of the lines in the port for create file?...more than just the data and handshaking lines?  If   the create file solution works, then reject my answer.

0
 
LVL 5

Expert Comment

by:dirtdart
ID: 1456959
Honestly, rmichaels, I'm not sure.  I never had the need to go past data transmission for my project, since the RS232 device only had 3 lines to begin with.  But Microsoft claims that this is the "new and improved solution."  You know how that goes.  The always go and fix something that isn't broken.
0
 
LVL 3

Expert Comment

by:rmichels
ID: 1456960
I can understand using the CreateFileEx for sending/receiving data across the RS232 or Parallel port, but to me that is a limiting solution. It depends upons Zok's needs.  Anytime I have used the parallel port, I had to tweak and diddle the control lines and data lines to control an external device.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question