[futurebasic] Re: [FB] PictH as handle or pichandle

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2011 : Group Archive : Group : All Groups

From: Steve <mactech@...>
Date: Thu, 29 Dec 2011 10:00:02 -0500
I don't have any issues with DrawPicture using dim as PicHandle

and get this error because i do not cast [ yet ], but it functions properly.

Warning: clang:
incompatible pointer types assigning to 'PicHandle' (aka 'struct Picture **') from 'Handle' (aka 'char **') [-Wincompatible-pointer-types] [line 3856:25 of _12_functions.incl.m]

this is on my bucket list to add casting but it still functions without the cast



On Dec 29, 2011, at 9:55 AM, Robert Covington wrote:

> I'm going bonkers because the lone thing which used to work reliably was a PictHandle.. And DrawPicture liked them too.
> 
> Dim pictH as handle
> 
> DrawPicture(pictH, rect)
> 
> But now, it seems -some- have to be dimmed as PicHandle
> 
> Dim as picHandle @pictH?
> 
> or
> 
> Dim as picHandle pictH? FBtoC seems to generate the same code.
> 
> But... in my FN SetImageWellColor
> 
> GCC complains if the pictH is a picHandle, does not if a handle, because it seems ControlButtonContentInfo Content wants a Handle for
> 
> Content.ContentType = _kControlContentPictHandle
> Content.u.Picture = ph
> 
> ?
> 
> Then when I use a handle  to AddFlavoredData, THAT complains.
> Warning: gcc:
> passing argument 2 of 'AddFlavoredData' from incompatible pointer type in fn 'DoTrackPictDrag' [line 5126 of _2_Header_Constants.incl...COMPOSITOR_ZERO_DAY.c]
> 
> 
> if fn AddFlavoredData( myDrag, pictH, _myFlavor )
> 
> local mode
> local fn AddFlavoredData( theDrag as DragRef, incoming as handle, theFlavor as OSType )
> '~'1
> end fn = fn AddDragItemFlavor( theDrag, 1, theFlavor, #[incoming], FN GetHandleSize(incoming), 0 )
> 
> ??
> 
> But if I set that to Handle, then DRAWPICTURE complains it wants a PicHandle
> 
> 
> What do I use? What the h*ll *=e is the difference between a PicHandle and a HANDLE?
> 
> 
> This is driving me -crazy-
> 
> One thing wants a handle. Something else wants a Pichandle.
> 
> USED TO BE ANY HANDLE worked for a PictH
> 
> I am going to check into a loony ward.
> 
> rc
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
> To access the list archives, go to:  http://freegroups.net/groups/futurebasic/
>