(Using a Component in a Service) OR (Accessing Parallel Port from NT systems)

Posted on 2003-03-23
Medium Priority
Last Modified: 2010-04-04
I need to read my Parallel port in a Delphi service.

I have already found a component that allows parallel-port communications.
The main problem now is that in a Service I can't add components and of course
creating it with nil doesn't work.

So this gives me the following two possible answers:
1. How to use a component in a service?
2. How to access the parallel port without a component.
Question by:mtrimpe
  • 4
  • 2

Expert Comment

ID: 8193741
Turbo Power's Async Professional (www.TurboPower.com) includes examples of how to get to all the ports.  I've used the serial access controls.  Turbo power is leaving the business and has released most of its source to the OpenSource site SourceForge.net.  

I've not looked but you should be able to find what you need there and it is free!

Author Comment

ID: 8193926
What I look is not at all on that site. Please send me a real solution for my question, no wrong pointer.

Author Comment

ID: 8197710
OK everyone,

I just found out I need another component. Let's all focus on the part of using components in a service now ..
Technology Partners: 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!


Expert Comment

ID: 8200671
sounds like you just need to find a non-visual component.
i'm able to add a timer component to a service application just fine.

Author Comment

ID: 8201676

If you can help me with something else I'll give you the points. Since you apparently worked with services, I need to send key events from a service. It doesn't work though, even after I have set Interactive to True. Do you have any idea?

Accepted Solution

-mac10- earned 225 total points
ID: 8204481
Are you wanting to send events from the service to another application?

If so, i'm having the same problem.
I'm able to use windows messages but not my own custom messages.  For Example, I'm able to send a WM_CLOSE to a specific window/application and get it to close, but I'm not able to define my own events.  Sorry :(

Author Comment

ID: 8204568
I don't need custom messages. I use standard windows key events which need to be send to the desktop itself, i.e. the active window, just like a real key press from the keyboard would do.

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

571 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