Conio.h file problems

This is a discussion on Conio.h file problems within the C++ Programming forums, part of the General Programming Boards category; Good morning (Or evening, wherever you live). I am using the Dev-C++ v4.01 compiler and I am unable to use ...

  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
    Still A Registered User DISGUISED's Avatar
    Join Date
    Aug 2001
    Posts
    499

  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: goldenbunny84@hotmail.com

    "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, 09:39 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07: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

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