On Thu, 19 Jan 2006 19:27:31, Mike Hore <email@hidden> wrote:
>> Problem solved. This was a legacy app, and just after my CreateNewWindow
>> call there was some code that included a SetPort call (using the WindowRef
>> as its parameter, since I was assuming a WindowRef is the same as a
>> GrafPtr...)
>
> For a moment I thought this must have been legal or something. Of
> course it isn't. What really threw me was that the Mac header
> files that come with GNU Pascal define WindowRef, WindowPtr,
> GrafPtr, etc etc ALL as ^Sint32 !!
Hmm, why not "TYPE WindowRef = ^WindowRecordOpaque" ?
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden