parallel port interfacing

This is a discussion on parallel port interfacing within the C Programming forums, part of the General Programming Boards category; I want to make a c program(16 bit) that runs on Windows XP platform for input-output at parallel port. I ...

  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
    32,845
    > 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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    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, 01:33 PM
  2. problem interfacing in parallel port
    By tariq7868 in forum C Programming
    Replies: 4
    Last Post: 06-08-2009, 04:53 AM
  3. Parallel Port to USB controller and outb()
    By coletek in forum Linux Programming
    Replies: 1
    Last Post: 06-05-2009, 07:57 AM
  4. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 06:49 PM
  5. Segmentation Fault - Trying to access parallel port
    By tvsinesperanto in forum C Programming
    Replies: 3
    Last Post: 05-24-2006, 04:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21