I am writing a BlitzMax program (in Windows ME) that uses the Print command to output to a DOS window.
However, when the program ends the DOS window immediately terminates preventing me from seeing the results of the program. At the end of the source code I have tried using WaitKey() and WaitChar() to retain the DOS window but they do not appear to work as, despite pressing keys, these two commands do not unpend and I have to forcibly terminate the program.
For example the BlitzMax program below, fails to print "Done".
Print "Hello"
Print "Press any key ..."
WaitKey() ' Or WaitChar()
Print "Done"
What am I doing wrong?
If it is relevent, I am not using and do wish to use the Graphics command.
Anthony Jordan
However, when the program ends the DOS window immediately terminates preventing me from seeing the results of the program. At the end of the source code I have tried using WaitKey() and WaitChar() to retain the DOS window but they do not appear to work as, despite pressing keys, these two commands do not unpend and I have to forcibly terminate the program.
For example the BlitzMax program below, fails to print "Done".
Print "Hello"
Print "Press any key ..."
WaitKey() ' Or WaitChar()
Print "Done"
What am I doing wrong?
If it is relevent, I am not using and do wish to use the Graphics command.
Anthony Jordan