On 5/11/06 2:03 PM, "Charles Yeomans" <[EMAIL PROTECTED]> wrote:

> You can't declare a function to return a struct of size greater than
> four bytes.  Instead you use the following trick -- declare the
> function with the return value as the first parameter.
>
> Declare Sub CGContextGetTextPosition Lib "Carbon" (returnValue as
> Ptr, context as Integer)
> 
> Then call it as follows.
> 
> dim theContext as Integer = ...
> dim thePoint as new MemoryBlock(8)
> 
> CGContextGetTextPosition thePoint, theContext
> 
> Charles Yeomans

Oooh...ahhh. Now that's the coolest thing I've read all day.

Thanks, Charles.

Michael

_______________________________________________
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