Simulate LPT port

Hi,

How can one simulate the LPT port? Basically what i have is a software that exchanges messages with what is attached to the LPT port. I need to override that. I need that that software exchange messages with my software, while nothing is attached to the LPT port. For that, my software needs to somehow simulate the behaviour of the LPT port. How can i achieve that?
dannertbAsked:
Who is Participating?
 
George TokasConnect With a Mentor Commented:
>>(1) CONTROLLING THE LPT port (with the hardware attached to it!) so i can see what messages are exchanged between the hardware and the software.

The IOPort component can help you monitoring the LPT port....

>>(2) remove the hardware  attached and to MAKE ANOTHER APPLICATION which would simulate the LPT port according to the messages that were exchanged earlier

I'm not REALLY sure that you can do this because I tried in the past ( for 1 hour) and didn't make it...

>>On another site somebody suggested the use of hooks.

If there is a way to to this in plain C++ it can be done with BCB...
Unfortunatetly I didn't used hooks untill now...
BUT if you have some sample code I can help you translate it for BCB...

Suggestion:
Ask the same Q in C++ area... The MOST probable is that the Greatest C++ Programmer Entity (with every respect) named jkr will answer...:-))
I will try to help you translating the code for BCB...

George Tokas.
0
 
George TokasCommented:
>>Basically what i have is a software that exchanges messages with what is attached to the LPT port.

As far as I know of typicaly it is a kind of HASP or some other dongle....
You can understand that is CRACKING if this is the case...
ANYWAY....
>>I need to override that.
As far as I know of again there are dongle simmulation dll's out there on the net(again IF THIS IS THE CASE)...
If this isn't the case (Hasp, Dongle) then the answer is almost the same...
You have to create a Dll or an application hook to LPT port and send/receive data...
And at this process I'm afraid I can't help because I never tried something like that...

George Tokas.
0
 
dannertbAuthor Commented:
No cracking or smth like that involved. It's a simple additional hardware connected on the LPT which exchanges messages with another software.

Other ideas are welcome.
0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

 
George TokasCommented:
>>No cracking or smth like that involved
I'm NOT judging you my friend...
I just stated my oppinion....
An idea is to create an application to control another LPT port i.e. LPT2...
If your PC have not second one (usually ) then you have to buy a card and I don't think it cost more that $10...
You can use IOPort component from http://www.winsoft.sk to access the LPTx port EASILY...
The component is commercial but you can use the trial...

Consider it a bit...
One more thing... MAYBE you can read the LPT port using that component as an essense of "hooking" but I'm not sure that you can write to LPT and the other app reads what you have sended...

George Tokas.
P.S. The component worth the price to buy it at least for it's features... You can access EVERY I/O address...
0
 
dannertbAuthor Commented:
Umm, i'm not sure i got it.

The first part of what i need to do is, in fact, (1) CONTROLLING THE LPT port (with the hardware attached to it!) so i can see what messages are exchanged between the hardware and the software.

The second part would be to (2) remove the hardware  attached and to MAKE ANOTHER APPLICATION which would simulate the LPT port according to the messages that were exchanged earlier. On another site somebody suggested the use of hooks.
0
 
George TokasCommented:
@dannertb
It will be good if you can inform except me and anyone else who will see this Q if the answer was helpful and, if you like, what method you used to solve the problem.

Regards,
George Tokas.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.