Google Answers Logo
View Question
 
Q: Trap windows exception when multiple applications writing to LPT1 ( No Answer,   0 Comments )
Question  
Subject: Trap windows exception when multiple applications writing to LPT1
Category: Computers > Programming
Asked by: lazybee-ga
List Price: $10.00
Posted: 31 Jul 2002 12:05 PDT
Expires: 01 Aug 2002 07:05 PDT
Question ID: 47584
I have an application which runs on DOS and Win 95/98. This
application writes to parallel port directly (using interrupts). When
using on Win95/98, I get an exception thrown by Windows saying "you
are trying to write on LPT1 which is used by another application, Do
you want to take control of parallel port ?". Now, I want to trap this
exception so that I can handle it differently. Basically I want to
find out if other application is writing to LPT1, my application must
know and should handle it, like wait for sometime and then write. I
dont want user to see Windows error. Now whatever is the solution, I
must be able to compile it with a 16 bit dos extender. This is because
I will use the same application on DOS. I dont want to use any Windows
API to trap this exception.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy