home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!sol.ctr.columbia.edu!mhall
- From: mhall@occs.cs.oberlin.edu (Matthew Hall)
- Subject: Re: "GLOBAL System Variables", Help!!!
- In-Reply-To: lecates@bach.udel.edu's message of Sun, 24 Jan 1993 03:42:30 GMT
- References: <1993Jan21.200510.7950@fcom.cc.utah.edu> <C1CAAv.9Hu@news.udel.edu>
- Sender: nobody@ctr.columbia.edu
- Organization: Oberlin College Computer Science
- Date: Mon, 25 Jan 1993 13:55:13 GMT
- Message-ID: <MHALL.93Jan25085513@occs.cs.oberlin.edu>
- X-Posted-From: occs.cs.oberlin.edu
- NNTP-Posting-Host: sol.ctr.columbia.edu
- Lines: 31
-
- In article <C1CAAv.9Hu@news.udel.edu> lecates@bach.udel.edu (Roy LeCates) writes:
-
-
- > >Does anyone know how to write/read Global variables in THINK Pascal ?
- > >I have an address of CurActivate ($0A64) and size (4).
- > >Think Reference says that it's a "Global Variable", but
- > >when I tried to use it in Pascal it says "unknown indef.".
- > >" MyWindow := CurActivate; "
-
- First, All lo-mem globals are defined in the Interfaces file SysEqu.p
- which should be in your ThinkPascal::Interfaces. Just dump it in your
- project and add it to Uses. It won't add to your code size (it's all
- constants), and once it's built it shouldn't have to be rebuilt, so it
- wont add compile time.
-
- Second, I believe that you can just type
- MyWindow:= WindowPtr(ptr(CurActivate)^);
-
- You may have to declare a type LongPtr = ^Longint; and substitute that
- for the ptr.
-
- Hope this helps,
- -matt hall
-
- --
- -------------------------------------------------------------------------------
- Matt Hall. mhall@occs.oberlin.edu OR SMH9666@OBERLIN.BITNET
- (216)-775-6613 (That's a Cleveland Area code. Lucky Me)
-
- F(X)=M*X*(1-X)
-
-