Thread: How do I make getch() ???

  1. #1
    Registered User
    Join Date
    Feb 2002

    How do I make getch() ???

    First off, I searched the faq and the previous posts. I am using getch() in a program, but I am trying to stick with ansi compliant functions.

    Does anyone know how I would make a function that would accept a char without the user pressing 'enter'?
    I checked the conio.h file, but couldn't understand it.

    Once again, any help is appreciated.

  2. #2
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    conio.h only contains the declarations for the actual function for getch();

  3. #3
    Registered User
    Join Date
    Sep 2001
    Hi, I have some bad news.

    You can't, not using other ANSI C functions, I had the same question months and months ago, and I could not find anything that would do it. It was suggested to me to use Assembly language, but Im not sure how. So if you can use Assembly try using it other wise Im sorry.


  4. #4
    Registered User
    Join Date
    Sep 2001
    in 60H

    this will give you the scan code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to make a Packet sniffer/filter?
    By shown in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2009, 09:51 PM
  2. trying to make a KenGen ( for a game tool )
    By lonewolfy in forum C# Programming
    Replies: 4
    Last Post: 03-28-2007, 08:23 AM
  3. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  4. 'functions' in make?
    By mart_man00 in forum C Programming
    Replies: 1
    Last Post: 06-21-2003, 02:16 PM
  5. Replies: 6
    Last Post: 04-20-2002, 06:35 PM