Console Application Problems

i8088user

Member
Joined
Sep 18, 2004
Messages
7
Programming Experience
10+
Im using a console application because the program im working on is for automation purposes. Only problem is, i can figure out how to end the program. In a forms based program is ME/MYBASE/THIS(C#).Close in the console its none of these. Ive tried Wrapping the API call of FreeConsole from Kernel.lib and it works only it doesnt stop the undrlying process just the window. Is there an easy way to do that that i may be overlooking?

Thanks Very much for the help.
G. Martin
 
normally when you creat a console application when all code is executed the console will exit automatically, to avoid this you can set console.readline() at the end of your code. But when you want to close a program while running code for examples in an IF clause try using application.exit() this should end the program.
 
Back
Top