home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5278 < prev    next >
Encoding:
Internet Message Format  |  1993-01-22  |  1.9 KB

  1. Path: sparky!uunet!olivea!sgigate!sgi!wdl1!scf16!andres
  2. From: andres@scf16.scf.loral.com (Jeff Andres)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: BPW: Closing MainWindow and Borland Reserved Words
  5. Message-ID: <1993Jan22.180300.10484@scf.loral.com>
  6. Date: 22 Jan 93 18:03:00 GMT
  7. Sender: andres@scf.loral.com (Jeff Andres)
  8. Organization: Loral Space & Range Systems
  9. Lines: 36
  10.  
  11. Previously posted to comp.lang.pascal....I wrote the following:
  12.  
  13. From: andres@scf16.scf.loral.com (Jeff Andres)
  14. Subject: BPW: Closing MainWindow ???
  15. Message-ID: <1993Jan22.144222.8672@scf.loral.com>
  16. Sender: andres@scf.loral.com (Jeff Andres)
  17. Organization: Loral Space & Range Systems
  18. Date: Fri, 22 Jan 1993 14:42:22 GMT
  19.  
  20. Using BPW and the resource workshop, I've used the skelton features
  21. of a Borland program to begin hacking/programming in windows. The
  22. program I started with (as I recall) didn't have an Exit function
  23. but it did of course have the standard window close call. I wanted
  24. to add the Exit feauture so I went into RW and created one with some
  25. bogus return code (99). My program could capture this but I couldn't
  26. quite figure out how to shutdown the windows....yes, RTFM...I see
  27. CanClose, but not CLOSE...I see DESTROY, but that doesn't appear
  28. to really shutdown/clean-up gracefully....hints ???
  29.  
  30. After getting frustrated, I decided that Borland had to have added this
  31. feature into one of their examples and stumbled upon HeapSpy. Glancing
  32. through their code I could not find where their Exit was called. I
  33. opened their Menu using RW (HeapSpy.res) and found out that their return
  34. code was set to something like 23400. So I took a chance and changed my
  35. code of 99 to 23400 and BAM, it worked...what is so special about this
  36. number and where is it documented....are there other reserved return
  37. codes ???
  38.  
  39. Cheers,
  40.  
  41.  
  42. -- 
  43.  
  44.       Jeff Andres             ---  Loral Space and Range Systems
  45.                      ---  1260 Crossman Ave.  MS-S37
  46.   e-mail: andres@scf16.scf.loral.com    ---  Sunnyvale, California  94089
  47.