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..
: 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
Comments
: 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