-
schedule a file
Hi
I using window xp and scheduler a task for my exe file, it worked pefectly when I built my application using win32, it run perfectly and stopped after putting the result in the output file.
but when I built my application using console application, and schedule a task for it run buit did not stop till I stop it and did not give any result for amy output file. and when you halt it you will find ( in gives last result 0xc000013a in the windon xp description)
can we make a scheduler in C++ and howwww???????. rather that using window xp task scheduler
any ideas
-
It would probably be a lot easier to figure out why your console application cannot be scheduled than it would to make your own scheduler.
-
c000013a STATUS_CONTROL_C_EXIT
I agree with Daved, the problem is most likely a bug in your code.
-
ok I there is a bug in my code, why when run the program in project.dsw it gives the right result in the output file.
:confused: I wonder how I will fix that bug without knowing what is it, and what part causing it.
-
It could be due to differences between running it from the scheduler versus running it from the IDE. What happens when you run it from a command prompt? What about when you put it your path and run it from different directory? The IDE has different settings (like what the current directory is) than running from the command line or scheduler has.
Use cout statements to make sure it is reading and writing files to the directory you expect it to, and to find out how much of the program is successful and where it errors out.
-
Thank you guys I was using .ini file and did not put it in the same extension of the .exe file so, now it is working perfectly.
many thanks