Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.