Reading / Writing to Hardware Registers

Discussion in 'C++' started by Brian, Sep 25, 2007.

  1. Brian

    Brian Guest

    Our POS application currently opens the cash drawer via a Epson-like
    printer. That works great, but if the receipt printer fails, then that
    creates a choke point because then the cash drawer won't open. The POS
    machine we use have two cash drawer ports that are accessible via I/O
    port 4B8h. In the old DOS days, I could use outport and inport... my
    question is - can I use CreateFile, ReadFile, and WriteFile to
    communicate with this I/O port? I already use these functions to
    communicate with the COM ports.

    Any examples would be helpful.


    Brian, Sep 25, 2007
    1. Advertisements

  2. Brian

    Brian Guest

    I just realized that I posted to the wrong group. Sorry.
    Brian, Sep 25, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.