Article View: comp.os.ms-windows.programmer.misc
Article #2271BPW: Closing MainWindow and Borland Reserved Words
From: Jeff Andres
Date: Fri, 22 Jan 1993 18:03
Date: Fri, 22 Jan 1993 18:03
36 lines
2031 bytes
2031 bytes
Previously posted to comp.lang.pascal....I wrote the following:
From: andres@scf16.scf.loral.com (Jeff Andres)
Subject: BPW: Closing MainWindow ???
Message-ID: <1993Jan22.144222.8672@scf.loral.com>
Sender: andres@scf.loral.com (Jeff Andres)
Organization: Loral Space & Range Systems
Date: Fri, 22 Jan 1993 14:42:22 GMT
Using BPW and the resource workshop, I've used the skelton features
of a Borland program to begin hacking/programming in windows. The
program I started with (as I recall) didn't have an Exit function
but it did of course have the standard window close call. I wanted
to add the Exit feauture so I went into RW and created one with some
bogus return code (99). My program could capture this but I couldn't
quite figure out how to shutdown the windows....yes, RTFM...I see
CanClose, but not CLOSE...I see DESTROY, but that doesn't appear
to really shutdown/clean-up gracefully....hints ???
After getting frustrated, I decided that Borland had to have added this
feature into one of their examples and stumbled upon HeapSpy. Glancing
through their code I could not find where their Exit was called. I
opened their Menu using RW (HeapSpy.res) and found out that their return
code was set to something like 23400. So I took a chance and changed my
code of 99 to 23400 and BAM, it worked...what is so special about this
number and where is it documented....are there other reserved return
codes ???
Cheers,
--
Jeff Andres --- Loral Space and Range Systems
--- 1260 Crossman Ave. MS-S37
e-mail: andres@scf16.scf.loral.com --- Sunnyvale, California 94089
Technical Details
Message-ID:
<1993Jan22.180300.10484@scf.loral.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!sgi!wdl1!scf16!andresShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!sgigate!sgi!wdl1!scf16!andres From: andres@scf16.scf.loral.com (Jeff Andres) Newsgroups: comp.os.ms-windows.programmer.misc Subject: BPW: Closing MainWindow and Borland Reserved Words Message-ID: <1993Jan22.180300.10484@scf.loral.com> Date: 22 Jan 93 18:03:00 GMT Sender: andres@scf.loral.com (Jeff Andres) Organization: Loral Space & Range Systems Lines: 36