Thread: Conio.h file problems

  1. #1
    Unregistered
    Guest

    Question Conio.h file problems

    Good morning (Or evening, wherever you live).
    I am using the Dev-C++ v4.01 compiler and I am unable to use some of the functions in Conio.h, for example : clrscr() and kbhit().
    I know that it's not my programming at fault (For once) because I even copied the "How to pause" example from the FAQ of this site, and my compiler still kept telling me that there is no kbhit() function.

    I opened my conio.h file and it seems very incomplete, so I was wondering if you could tell me where to go to get the full one, or at least one with kbhit()?
    I figure it's probably illegal to get it from one of you because of copywrite and so on, or is it also under the GNU Genaral thing? If so, could someone put it here for me to download?

    PS: I know I should get a new compiler but this is the only good free one I could find.

    Thanks for everything,
    Paul.

  2. #2

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    99
    Wow! Somebody linked to my thread! *gasp*

  4. #4
    Unregistered
    Guest
    I just had a simular problem using getch().

    You need #include <conio_mingw.h> instead of #include <conio.h>.

    Hope this works

  5. #5
    Registered User
    Join Date
    Apr 2002
    Posts
    156
    you must include both conio.c and conio.h(in the Dev-C++4 IDE/Ming W compiler, whatever)
    Compiler: MingW(IDE: Bloodshed Dev-C++ 4.01)
    Web Site: Zoo Crew
    Forums: Zoo Boards
    E-mail: [email protected]

    "Do you wanna go to jail or do you wanna go home?!?!" - Alonzo(Training Day)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  5. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM