Thread: parallel port interfacing

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    38

    parallel port interfacing

    I want to make a c program(16 bit) that runs on Windows XP platform for input-output at parallel port.

    I have sucessfully done it using outportb and inportb on Win9x
    but on XP probably some security feature does not allow direct access.

    I found some dll files no net which help to do the task ..but i don't want to use them

    can some lowlevel programming in C help.


    Please Help

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > can some lowlevel programming in C help.
    No, let go of the past and use the proper API routines of your OS to access the parallel port

    Read up on CreateFile() on MSDN
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    38
    Thanx !! I realize the same thing but ..actually someone ,sort of, challenged me to do it using 16 bit compiler
    that is why . i was ready to take all that pain.

    thanx again

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    For future problems on this subject, you will probably get more help using the Networking and Device Communications board.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Parallel Port IO ops not working properly
    By microtechno in forum Linux Programming
    Replies: 16
    Last Post: 06-08-2009, 12:33 PM
  2. problem interfacing in parallel port
    By tariq7868 in forum C Programming
    Replies: 4
    Last Post: 06-08-2009, 03:53 AM
  3. Parallel Port to USB controller and outb()
    By coletek in forum Linux Programming
    Replies: 1
    Last Post: 06-05-2009, 06:57 AM
  4. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  5. Segmentation Fault - Trying to access parallel port
    By tvsinesperanto in forum C Programming
    Replies: 3
    Last Post: 05-24-2006, 03:28 AM