because the MSDN program still uses errror.h, and hendels the error in old fasion way!
You mean errno.h? _stat and FindFirstFile are both C-based API functions, so errno and return codes are essentially the only option for handling errors. You can wrap your own exception handling mechanism around it if you really want to, but the "old" way doesn't mean that it's not functional or effective. ;)
And since Decepticon undersands the try catch block, that idea how you cold have iput buffer of chars and then convert it to int, well try atoi(cInputBuffer) woudl not be to much out there.
It is like, you try to convert it, and if you can you do what you do, and if not possible you go to eror handler.
What have you gain like that, whell your app is more robust, they will not be able to input some ascii codes und stuf, but...
I think that Decepticon deserves some points or what ever is this for!