[futurebasic] Re: [FB] StazMunger

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2005 : Group Archive : Group : All Groups

From: tedd <tedd@...>
Date: Mon, 24 Oct 2005 12:38:29 -0400
>Does anyone know how this C function should be translated into FB
>
>
>IconFamilyHandle NewIconFamilyHandle()
>{
>     IconFamilyHandle    icns = (IconFamilyHandle) NewHandle( 8 );
>
>     if ( icns )
>     {
>         ( **icns ).resourceType = kIconFamilyType;
>         ( **icns ).resourceSize = 8;
>     }
>
>     return icns;
>}
>
>
>My FB translation fails:
>
>
>local fn NewIconFamilyHandle
>
>dim as IconFamilyHandle    icnsH
>
>icns = fn NewHandle( 8 )
>long if ( icnsH )
>     (icnsH..nil ).resourceType = _kIconFamilyType
>     (icnsH..nil ).resourceSize = 8
>end if
>
>end fn = icnsH
>
>
>Ken


Ken:

I think it's icnsH and not icns.

icnsH = fn NewHandle( 8 )

tedd


-- 
--------------------------------------------------------------------------------
http://sperling.com/