On Jan 10, 2007, at 3:31 PM, Norman Palardy wrote:

On Jan 10, 2007, at 2:13 PM, Theodore H. Smith wrote:

Anyone got some declare examples against CarbonLib on MacIntel?

Things like this:

  #if TargetCarbon then
    Declare Function GetMBarHeight Lib "CarbonLib" () as Short
  #endif
  return GetMBarHeight()

They don't work anymore.

They work IF you use the right library
Carbon not CarbonLib

Norman's right. I use this just fine in MacIntel apps:

Declare Function GetMBarHeight Lib "Carbon" () As Integer

Here's what the headers say:

/*
 *  GetMBarHeight()
 *
 *  Mac OS X threading:
 *    Not thread safe
 *
 *  Availability:
 *    Mac OS X:         in version 10.0 and later in Carbon.framework
 *    CarbonLib:        in CarbonLib 1.0 and later
 *    Non-Carbon CFM:   in InterfaceLib 7.1 and later
 */


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to