Hello to all...
I am in the process of learning C language and not an expert programmer. I created a C script that displays a machine's statistics on the screen. Now whole program is ready and is working properly to display desired output. But I need to change few things.
I need to display the output in a white screen (like a message box) and an 'OK' kind of button at bottom. This script will run on client users when they logon into their computers. This script takes few seconds (4-5) to get executed completely. In between Ctrl+C or Ctrl+z can be pressed by user and script execution will get canceled leaving behind some temporary files created in the process.
I need to disable these keystrokes, and the standard '- + x' options on top right of output window should not come. I mean user should not be able to cancel or close the execution before it completes. Is that possible in C? Plz try to be specific to C advices only, since I am planning to learn C till depth.
Moreover, I tried to use getch() or getche() for holding the screen after executing the .exe file. These worked sometimes but now compiler throws error: getche undeclared (first use this function). I am simply puting a getche(); code at the end of program. Now I am forced to use getchar();
Looking forward for help.
Thanks