How do I make getch() ???

This is a discussion on How do I make getch() ??? within the C Programming forums, part of the General Programming Boards category; First off, I searched the faq and the previous posts. I am using getch() in a program, but I am ...

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    51

    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
    Posts
    1,020
    conio.h only contains the declarations for the actual function for getch();

  3. #3
    Registered User
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    212
    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.

    kwigibo

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    140
    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, 08: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

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