Parallel Port in VB6
Solved
BERGER
-
moui -
moui -
I am using Windows XP, and I would like to count external pulses through a parallel port input, so that I can process it in VB6. As for the outputs (D0 to D7), it works well, but not for the input. Thank you in advance.
12 answers
Hello,
To control the parallel port in VB, you need a DLL. Under Win98, we had the well-known inpout32.dll. Under XP, I found one that seems to work well. I say "seems" because I have only tried the demo version so far. I should receive the paid version (€29) in a few days. It's called ElkportNT, which allows you to read and write using simple commands on all the registers of the parallel port either bit by bit or by complete word. I think that if you can't read, it's because you're not reading from the right register. There are three registers located at address H378, H379, and H37A.
I can provide you with VB6 codes using inpout32 or ElkportNT.
Write to me at my direct address and I will explain in more detail what I am doing.
To control the parallel port in VB, you need a DLL. Under Win98, we had the well-known inpout32.dll. Under XP, I found one that seems to work well. I say "seems" because I have only tried the demo version so far. I should receive the paid version (€29) in a few days. It's called ElkportNT, which allows you to read and write using simple commands on all the registers of the parallel port either bit by bit or by complete word. I think that if you can't read, it's because you're not reading from the right register. There are three registers located at address H378, H379, and H37A.
I can provide you with VB6 codes using inpout32 or ElkportNT.
Write to me at my direct address and I will explain in more detail what I am doing.
Salut,
I read your email, I am really interested in having the connection between a card and the VB interface that I created.
The library I used is: inpout32.dll.
So, I have created a small VB interface to send a code, either in decimal or hex, to my card, of course, which has a specified function. However, during the execution of the program, I receive an error message, and until now I don't know what the error is.
I would like to get a response as soon as possible.
I read your email, I am really interested in having the connection between a card and the VB interface that I created.
The library I used is: inpout32.dll.
So, I have created a small VB interface to send a code, either in decimal or hex, to my card, of course, which has a specified function. However, during the execution of the program, I receive an error message, and until now I don't know what the error is.
I would like to get a response as soon as possible.
To send data through the parallel port, try the input32 library; copy it to system32.
The code will be:
Out((port number), 555)
after declaring the function
Out(num as integer, val as integer)
The code will be:
Out((port number), 555)
after declaring the function
Out(num as integer, val as integer)
Bonjour, je suis là pour vous aider avec votre demande de traduction. Voici la traduction en anglais de votre message :
Hello, I am interested in the same thing. In fact, I want to send data through the parallel port to a card and receive data to process through the interface I created in VB6. This is my first time using VB, so I would like to have some information and perhaps a generic code (with comments if possible) to send and receive, that's all. I found a lot of information about the serial port, but I can't use it because I have a lot of data to send to and receive from my card. Thank you for everything.
Bonjour, je suis vraiment intéressé par ce que tu as dit que tu pouvais déjà lire des données qui venaient de l'extérieur de ton PC via le port parallèle. Excuse-moi, mais je suis dans un projet "instrumentation d'un PC" et j'aimerais savoir comment tu as procédé pour lire les données venant de l'extérieur et le logiciel que tu as utilisé, s'il te plaît. Et si possible, j'aimerais savoir les éléments que tu as utilisés, enfin côté matériel, car moi je pense que je devrais déjà avoir un convertisseur analogique-numérique avec mon capteur de signal que je relierai au port parallèle. Maintenant, il ne reste plus que la suite. Si tu peux m'aider au niveau du convertisseur jusqu'à la programmation, merci.
Bonjour,
I am asking you to inform me about the VB code to send a signal to a PC via the port //.
Thank you
I am asking you to inform me about the VB code to send a signal to a PC via the port //.
Thank you
Hello,
I have learned some methods for programming ports // with VB 6 using kernel32.dll and I think it works well, if someone is interested I would be happy to help them.
I have learned some methods for programming ports // with VB 6 using kernel32.dll and I think it works well, if someone is interested I would be happy to help them.
Salut, I’m not sure if you read my problem, what I'm looking for is to detect if the current is flowing or not. On the hardware side, I used a transformer that I connected to the parallel port (the negative wire in pin 25 and I tried the positive wire in all other pins) but the application does not give me any results.
I’m working on Windows XP and using the input32.dll library under vb.net
If you have any ideas to propose, I would be happy to hear them. Thank you in advance.
If Option1.Checked = True Then
Text1.Text = CStr(Inp(&H379S))
End If
I’m working on Windows XP and using the input32.dll library under vb.net
If you have any ideas to propose, I would be happy to hear them. Thank you in advance.
If Option1.Checked = True Then
Text1.Text = CStr(Inp(&H379S))
End If
Hello,
thank you for responding >lotch16< and I would be grateful if you could help me!! I'm really interested and pressed for time!! thank you again, I'm waiting for your response!
have a good day!
thank you for responding >lotch16< and I would be grateful if you could help me!! I'm really interested and pressed for time!! thank you again, I'm waiting for your response!
have a good day!
Hello everyone
I want to order a stepper motor using a ULN 2003A buffer. The parallel port SPP for programming will be in VB6 (I have downloaded the DLL). Anyone who has an idea about the VB code part can send it to my address
Thank you for your attention. salim.bidhiafi@yahoo.fr
I want to order a stepper motor using a ULN 2003A buffer. The parallel port SPP for programming will be in VB6 (I have downloaded the DLL). Anyone who has an idea about the VB code part can send it to my address
Thank you for your attention. salim.bidhiafi@yahoo.fr
Do you have a solution, which DLL should I use?
This does not work with inpout32.dll
Thanks for your information.
I am also interested in examples of VB6 programs to read bytes through a parallel port. In fact, my problem is to capture the graphical outputs that a medical device sends to its parallel port. It is becoming difficult to find parallel-to-serial converters that work properly. Therefore, I would like to capture this information directly on another PC via a direct connection between the two parallel ports. Please note that I cannot install anything on the medical device (certified device).
Thank you for your help,
Gérald Lenoir
Sir, I am an engineering student and I have a hardware application for which I want to program the parallel port of the PC using the C language. Could you please send me help on my Gmail as soon as possible?
Thank you.
I also have a problem. I wanted to create an application in vb.net that allows me to detect whether the current flows or not. I used a transformer for the test, set it to 5.8V, and connected the wire (-) to pin 25 and the wire (+) to another pin (I tried all the pins), but I receive no response. I used the inPut32 library. Do you have any idea?