Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

need help winXP wont allow my program to interface with ports

c_aguitc_aguit Posts: 9Member
i badly need some help.... i have a program in visual c++ express edition..nd i am using an ASM inline assembly but winXP wont allow me to access the printer port..

Comments

  • stoberstober Posts: 9,765Member ✭✭✭
    : i badly need some help.... i have a program in visual c++ express
    : edition..nd i am using an ASM inline assembly but winXP wont allow
    : me to access the printer port..
    :

    Yes, you can not access ports directly any more like you could with MS-DOS programs. You now have to send the print job to the printer by either (1) open file handle to "LPT1:" and fprintf() to text to it, or use win32 api functions (more difficult), like OpenPrinter(). I've seen (and used) a few (rare actually) c++ classes at www.CodeProject.com that make it a little less complex.
    Conversation should be pleasant without scurrility, witty without affectation, free without indecency, learned without conceitedness, novel without falsehood.
    William Shakespeare
Sign In or Register to comment.