Talk About Network

Google





Mac > Code warrior for Mac > ****ting OS9 PP...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 2117 of 2233
Post > Topic >>

****ting OS9 PP app, LWindow updateRgn always empty

by Stephen Kay <sk@[EMAIL PROTECTED] > Apr 5, 2006 at 07:36 PM

I'm attempting to follow the instructions in Apple's Carbon ****ting Guide,
to ****t an OS9 PowerPlant app to OSX (using PP 2.2.2). I'm at the first
stage, where you try to carbonize the code, while linking to your normal
libraries, plus CarbonAccessors.o.

I have #defined:

#define ACCESSOR_CALLS_ARE_FUNCTIONS 1
#define OPAQUE_TOOLBOX_STRUCTS 1

....and I have fixed all the errors related to the opaque structures etc,
and
am able to link and run.

However, I'm having a problem where, in PowerPlant's
LWindow::Update****t(),
the updateRgn for every single window in the application is empty when
Update****t() is called, and so it exits and nothing is drawn in any of the
windows.

It calls ::GetWindowRegion(mMacWindowP, kWindowUpdateRgn, updateRgn).

Universal Headers states that this function is supposed to be available in
CarbonAccessors.o. But it always is returning an empty region.

If I comment out the test for ::EmptyRgn(updateRgn), then the rest of the
code in LWindow::Update****t() is performed, and they all draw as per
normal.
Obviously, this isn't the fix I need. ;-)

Anybody hear of this problem before? I've been trying to track what might
be
causing this, and I don't have a clue yet.

Thanks,

-- 
Stephen Kay
Karma-Lab   sk@[EMAIL PROTECTED]
                        ^^^^^^^
 




 4 Posts in Topic:
Porting OS9 PP app, LWindow updateRgn always empty
Stephen Kay <sk@[EMAIL  2006-04-05 19:36:56 
Porting PP App to Carbon, can't launch >>CarbonLib<< not found
Stephen Kay <sk@[EMAIL  2006-04-07 05:41:42 
Re: Porting PP App to Carbon, can't launch >>CarbonLib<< not fou
pwasson@[EMAIL PROTECTED]  2006-04-07 16:07:23 
Re: Porting PP App to Carbon, can't launch >>CarbonLib<< not fou
Stephen Kay <sk@[EMAIL  2006-04-12 19:02:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 16:57:33 PST 2009.