Send data to LPT on windows XP

Posted by gigi on Stack Overflow See other posts from Stack Overflow or by gigi
Published on 2011-01-02T14:08:05Z Indexed on 2011/01/02 14:53 UTC
Read the original article Hit count: 301

Filed under:
|
|
|
|

I want to send data to a printer on LPT1 and i trying exactly this but my CreateFile returns -1 (The system cannot find the file specified.Exception from HRESULT:0x80070002). How to open LPT1 port and send data to? I am trying this on XP and after that in win7 64 bit because from what i've read working with LPT in win7 64 bit is a bit of a problem, or should i say 64 bit of a problem:)

PS:Since it's my first post this year: Happy New year to everybody.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET