Portability

This is a discussion on Portability within the C++ Programming forums, part of the General Programming Boards category; I was curious about the portability of some of the standard headers. For example, I know that <windows.h> is for ...

  1. #1
    Master of Puppets rwmarsh's Avatar
    Join Date
    Feb 2006
    Location
    Texas
    Posts
    96

    Portability

    I was curious about the portability of some of the standard headers. For example, I know that <windows.h> is for machines running windows, but what about conio and conio2? I understand that they are not protable but what OSs will they run under. I was also curious about PDcurses. I have downloaded the dev pak but I have not been able to find much on documentation so I am unscertain about the functins available with it and how to use them. Can PDcurses run under any OS?
    Using DEV-C++ Under Windows XP
    +------------------------------+

    "No! Do, or Do Not. There is no Try..."

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,113
    I was curious about the portability of some of the standard headers. For example, I know that <windows.h> is for machines running windows, but what about conio and conio2?
    All three headers mentioned are not standard headers.

    I understand that they are not protable but what OSs will they run under.
    From what I understand, conio is a Borland specific library that happens to have rough equivalents with similiar functionality implemented by Microsoft and the MinGW port of GCC (all under MS Windows).
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    conio isn't portable. It's a DOS header, and there are some translations to windows. The fun ends there afaik.
    I'd go with PDcurses. curses is implemented under Windows, *nix, OS/2 that I know of (hopefully there's a Mac implementation somewhere...) - my preference when doing fancy terminal stuff.
    "Can PDcurses run under any OS?"
    No. "any OS" is a broad range of things. The software powering my calculator when I turn it on is an OS in it's respect, and curses will in no way run there. But curses should cover >95% of machines you find (unless you're dealing with some really exotic stuff) with minimal portability issues. I've used curses under both Linux & Windows. (ncurses and PDcurses.)
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. COM application portability
    By Opariti in forum Windows Programming
    Replies: 3
    Last Post: 11-21-2008, 01:17 PM
  2. Replies: 1
    Last Post: 10-24-2005, 07:35 AM
  3. Program Portability (code portability)
    By Perica in forum C++ Programming
    Replies: 2
    Last Post: 11-10-2002, 10:03 AM
  4. what does portability mean?
    By elad in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 10-03-2002, 03:46 AM
  5. portability of a pause function
    By Eigenvalue in forum C Programming
    Replies: 2
    Last Post: 09-15-2002, 03:22 PM

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