Compiler handling 'outportb' & 'sleep()'

This is a discussion on Compiler handling 'outportb' & 'sleep()' within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm looking for a compiler where I can use both the outportb command to send signals through my parallelport ...

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    3

    Compiler handling 'outportb' & 'sleep()'

    Hi,

    I'm looking for a compiler where I can use both the outportb command to send signals through my parallelport and the sleep() command.

    Any tips?

  2. #2
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    I'm not altogether certain, but I think you'll need a 16 bit compiler for that. <dos.h> comes to mind from a project I had to do a long time ago with the parallel port... and I'm not sure if that's standardised... or if it's available in most common compilers...

    _outp from <conio.h> comes to mind too, but again it's not standard.

    Best try to find a library that'll do this for you and use 'better' functions. The win32 api surely has something that'll do for you. Search msdn on google, is my advice. Or these forums windows/network are your best bets for searching.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GNU C/C++ compiler
    By B_Love in forum C++ Programming
    Replies: 1
    Last Post: 04-23-2006, 04:09 PM
  2. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 05:42 AM
  3. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 10:28 AM
  4. Sleep ????
    By swgh in forum C++ Programming
    Replies: 2
    Last Post: 07-05-2005, 10:17 AM
  5. Bad code or bad compiler?
    By musayume in forum C Programming
    Replies: 3
    Last Post: 10-22-2001, 09:08 PM

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