Ok; I've been programming for awhile but this has me rather upset and I'm not getting anywhere. Here's the setup:
/*------------------*/
#include<stdio.h>
#include<conio.h>
int main(void)
{
unsigned char command;
while (1==1)
{
command = getch();
gotoxy(10,10);
printf("%X",command);
}
}
/*------------------*/
Now; this returns the hexadecimal code for any character entered. with a REALLY old compiler this gave different values for x and alt-x. With the newer ones (ie. Borland
5.5) I'm getting no alt-codes added into the return value... Can someone tell me just how to detect alt-x etc in a newer compiler? Thanks!
(ie Alt-Q) should return (0x10; or 0x00,0x10...)