home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / win32 / 1890 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.8 KB  |  44 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cs.utexas.edu!swrinde!gatech!concert!sas!mozart.unx.sas.com!sasdxk
  3. From: sasdxk@skyhawk.unx.sas.com (Dave Kolb)
  4. Subject: GetLastError() return values???
  5. Originator: sasdxk@skyhawk.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BxGy4w.FtB@unx.sas.com>
  8. Date: Mon, 9 Nov 1992 21:53:19 GMT
  9. Nntp-Posting-Host: skyhawk.unx.sas.com
  10. Organization: SAS Institute Inc.
  11. Lines: 31
  12.  
  13.  
  14. Although I've found Appendix B in the Overviews manual, how is one
  15. supposed to relate the many possibilites for rc's that GetLastError()
  16. returns after a particular WNT function returns FALSE?
  17.  
  18. E.G. How am I supposed to know the actual values GetLastError() will
  19. return after CreateFile fails?  I think many of the values are the
  20. same as OS/2 such as ERROR_PATH_NOT_FOUND, ERROR_FILE_NOT_FOUND or
  21. ERROR_PIPE_BUSY but I sure as heck can't test for all the values in
  22. Appendix B each function call.  I don't even want to look thru the
  23. 100's of calls to even GUESS what they might be!
  24.  
  25. And indeed, most of the return values I could care less about, an
  26. error is an error and I'll print out a message and the user can look
  27. it up and modify his or the program's behaviour somehow :-)
  28.  
  29. But what if I want to deal with certain types of errors?  How does
  30. one find out the possibilities for a given function?
  31.  
  32. In OS/2 the rc's were listed with each function and when porting
  33. software it would be nice to know the likely rc candidates.  Or even
  34. if not porting an OS/2 app.
  35.  
  36. Thanks,
  37.  
  38. -- 
  39. Dave Kolb                     Opinions are mine not SAS'
  40. SAS Institute, Inc.           EMAIL:      sasdxk@unx.sas.com
  41. SAS Campus Drive - J206       Phone:      (919) 677-8000 x6827
  42. Cary, NC  27513-2414 USA      FAX:        (919) 677-8123
  43.  
  44.