Thread: Compiler handling 'outportb' & 'sleep()'

  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,273
    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, 06:42 AM
  3. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11: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