Hi,
I just started using SMILE, and I'm having some problems.
What are the return values of ReadFile and WriteFile? WriteFile returns 0, there is no file created, and I cannot figure out why. Is there any function/method for more diagnosis?
Thanks,
Nikola
ReadFile and WriteFile retvals
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: ReadFile and WriteFile retvals
This entry has some basic information on error handling:nikkne wrote:What are the return values of ReadFile and WriteFile?
http://genie.sis.pitt.edu/wiki/Applicat ... r_Handling
DSL_OKAY is #defined to zero, so it seems that WriteFile does the job. Are you sure your filename isn't /dev/null?
You may also try to add the following line at the beginning of your program:Is there any function/method for more diagnosis?
ErrorH.RedirectToFile(stdout);