home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!amgen!nuntius
- From: Michael Brennan <mikeb@sam.amgen.com>
- Subject: Re: Set/Get Cursor
- Message-ID: <1992Sep10.184138.3458@amgen.com>
- Sender: news@amgen.com
- Nntp-Posting-Host: swalker
- Organization: Amgen
- X-Useragent: Nuntius v1.1
- References: <1992Sep1.202106.2865@informix.com>
- Date: Thu, 10 Sep 1992 18:41:38 GMT
- Lines: 19
-
- In article <1992Sep1.202106.2865@informix.com> Bill Stackhouse,
- sbill@informix.com writes:
- >Why does the following cause EvenBetterBusError detect a NIL pointer
- >problem?
- >
- > SetCursor(*GetCursor(iBeamCursor));
- >
-
- Here's the code I use. It works for me:
-
- Cursor myCursor;
- CursHandle hCurs = 0L;
-
- hCurs = GetCursor( iBeamCursor );
- myCursor = **hCurs;
-
- SetCursor( &myCursor );
- DisposeHandle( hCurs );
- ShowCursor();
-