D
Daz
Hi everyone.
I have already posted (off topic) about the _getch() method, which is
platform specific. However, I have had a bit more of a think about what
I would like to do, and _getch() is not what I am looking for.
I need to make a loop that checks for 2 things. Firstly, whether or not
a key has been pressed, and if so what one. Secondly, I need to check
whether or no a particular application is still open or not. If the app
is open, as soon as it's closed, my program should stop waiting for a
keypress, and move onto the next function.
I know what this needs to go into a loop, and I know what I need to do
to check if an application is running, but I don't have a clue as to
where to start about checking for keyboard input at the same time.
I would really appreciate it if anyone could point me towards the
appropriate tools/functions that I might need to use. Ideally, I could
do with something simple to implement, but I am unsure if this really
can be that simple. My program is just a plain old console program, so
I can't use any TWL/MFC headers.
Thanks in advance.
Daz
I have already posted (off topic) about the _getch() method, which is
platform specific. However, I have had a bit more of a think about what
I would like to do, and _getch() is not what I am looking for.
I need to make a loop that checks for 2 things. Firstly, whether or not
a key has been pressed, and if so what one. Secondly, I need to check
whether or no a particular application is still open or not. If the app
is open, as soon as it's closed, my program should stop waiting for a
keypress, and move onto the next function.
I know what this needs to go into a loop, and I know what I need to do
to check if an application is running, but I don't have a clue as to
where to start about checking for keyboard input at the same time.
I would really appreciate it if anyone could point me towards the
appropriate tools/functions that I might need to use. Ideally, I could
do with something simple to implement, but I am unsure if this really
can be that simple. My program is just a plain old console program, so
I can't use any TWL/MFC headers.
Thanks in advance.
Daz