[futurebasic] Re: [FB] Copy GWorld funtion

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2010 : Group Archive : Group : All Groups

From: Rich Love <carnationsoftware@...>
Date: Sun, 14 Nov 2010 14:00:03 -0600
That new fn worked. Very good.


Next problem is here. (It does not like  [oneH)


oneH = Fn GetPicture(21)
Call HLOCK(oneH) 
LightRect = [oneH] + _PicFrame


Error: •• Assignment requires record or pointer to record in line 254 of Icon Pallet.INCL
 254:  LightRect = [oneH] + _PicFrame
                              ^


Rich



On Nov 14, 2010, at 1:46 PM, Robert Purves wrote:

> 
> Rich Love wrote:
> 
>> This function worked in the old FutureBasic, but fails in FBtoC.
>> Anyone know of a fix or alternate code that will work to copy one GWorld to another?
>> 
>> Error: •• Unknown variable type in line 191 of Icon Pallet.INCL: CGrafPort
>> 191:  local fn CopyGW2GW( srcGW as ^CGrafPort, destGW as ^CGrafPort,srcR as ^Rect, destR as ^Rect, cMode,@r as ^Rect)
>>                                              ^
> 
> 
> local mode
> local fn CopyGW2GW( srcGW as CGrafPtr, destGW as CGrafPtr, srcR as ^Rect, destR as ^Rect )
> '~'1
> ForeColor( _blackColor ) // prevent...
> BackColor( _whiteColor ) //...false colouration
> CopyBits( #fn GetPortBitMapForCopyBits( srcGW ), #fn GetPortBitMapForCopyBits( destGW ), #srcR, #destR, _srcCopy, 0 )
> end fn
> 
> 
> Robert P.
> 
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
> 


Rich Love - Carnation Software
Get 'Say it & Mail it' for iPhone
http://www.SayitMailit.com

MacWise Terminal emulation for Macintosh
http://www.CarnationSoftware.com
Twitter - http://twitter.com/CarnationSW
Email - RichLove@...
512 858-9234
















Attachments: