-
I am using CreateProcessA along with WaitForSingleObject to
run a process, hold the calling application, and resume when then generated process is finished. The shelled process is a scoring programming that could possible fail due to possible bad data in a database. I wish to, in the program that is calling this scoring application, find out when the scoring application fails so it can be rescheduled to run at a later time. How can I return the called processes generated errors or any value informing that the called process has errored in any way.
Thanks !!
-
You can use the getlasterror api to see the error that was accure in the windows os.
Code:
Declare Function GetLastError Lib "Kernel32" () As Long
-Kayoca Mortation