(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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 ..

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.


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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

762 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