undefined identifier getch()
Steven Schveighoffer
schveiguy at yahoo.com
Wed Dec 8 05:13:35 PST 2010
On Wed, 08 Dec 2010 06:06:18 -0500, Nrgyzer <nrgyzer at gmail.com> wrote:
> Hey guys,
>
> I'm writing a console based tool for windows. To receive the users
> input, I
> try to use getch() but the compiler always says "Error: undefined
> identifier
> getch". When I use getchar() it compiles successfully, but getchar()
> doesn't
> returns after a single input.
>
> Is there any equivalent version in D for getch?
>
> Thanks & regards...
Just a note, dmd on windows does not use Microsoft's C library, it uses
Digital Mars'. Therefore, any C functions that are not part of the
platform SDK are not available in D.
To see what DMC supports, look here:
http://www.digitalmars.com/rtl/rtl.html
-Steve
More information about the Digitalmars-d-learn
mailing list