?
Solved

Simulate LPT port

Posted on 2006-06-02
6
Medium Priority
?
852 Views
Last Modified: 2013-11-17
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?
0
Comment
Question by:dannertb
  • 4
  • 2
6 Comments
 
LVL 16

Expert Comment

by:George Tokas
ID: 16816584
>>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
 

Author Comment

by:dannertb
ID: 16816989
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
 
LVL 16

Expert Comment

by:George Tokas
ID: 16817417
>>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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:dannertb
ID: 16830728
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
 
LVL 16

Accepted Solution

by:
George Tokas earned 2000 total points
ID: 16833087
>>(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
 
LVL 16

Expert Comment

by:George Tokas
ID: 16930313
@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

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

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

862 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