problem in thread

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • getabhi
    New Member
    • Jun 2008
    • 1

    problem in thread

    HI

    I m writing driver for the printer. and I want to fire an event when ever the printer cover is open, paper is not there or any other events which stops the printer to work. for that I need to use thread which will monitor the printer continuously and whenever the event will occur it should popup one msg.

    Can anyone help me how to do that or provide any sample program.

    Thanks in Advance
    Abhi
  • arnaudk
    Contributor
    • Sep 2007
    • 425

    #2
    I don't know about capturing printer events, but for multi-threading check out boost::thread.

    Also, you might get more responses if you describe what you've tried and why it didn't work. If you haven't a clue how to get started, then read up on how to write hardware drivers in the OS you are using.

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      This sounds like you are really writing a print spooler rather than a driver. The printer driver probably already provides the status information.

      If this is the case, then your program is just another process running on the machine which samples the printer at regular intervals and makes the popup.

      Comment

      Working...