stardv
September 30th, 2005, 10:45 AM
I am puzzled with one task. Need some advice please. I have an application that is intended to be used
both by user and scheduled as cron job under Windows Scheduler. The problem is that it has UI like progress bar and some messaging windows, I need it because when user runs , he should see what is going on. However when application runs under Windows Schedule in situation when user is logged of, obviously it can not create UI handles and it crashes. I do not want to create 2 separate application one with UI and other without. I was just wondering if there is any way I can test form the program whether User Controls or Windows can be created or not and take appropriate action without program crashing.
Thanks for any valuable advice.
both by user and scheduled as cron job under Windows Scheduler. The problem is that it has UI like progress bar and some messaging windows, I need it because when user runs , he should see what is going on. However when application runs under Windows Schedule in situation when user is logged of, obviously it can not create UI handles and it crashes. I do not want to create 2 separate application one with UI and other without. I was just wondering if there is any way I can test form the program whether User Controls or Windows can be created or not and take appropriate action without program crashing.
Thanks for any valuable advice.