Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I am trying to make my life easier and write a generic error returning function.....so I dont have to rewrite modules depending on whether it will be a command line program or if its a GUI program (Yes I know command line programs can use ShowMessage...but thats not cool!)
So heres the question
How can I get a function to tell whether the program it is being run inside is a console application or a windowed program?
0 · ·