[futurebasic] Re: [FB] PICT files

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

From: Robert Purves <listrp@...>
Date: Sat, 31 Oct 2009 10:13:21 +1300
On 31/10/2009, at 3:36 AM, Bill Zielenbach wrote:

> The compiler warns me that the def disposeH commands is deprecated.  
> What should I substitute in its place?

dim as Handle h
def DisposeH( h )

¿¿ Warning: 'def' is deprecated; use 'fn' instead in line 3 of test

The warning is asking you to replace 'def' with 'fn':
fn DisposeH( h )

> It also warns me
> passing argument 1 of 'GetHandleSize' from incompatible pointer type

The warning is harmless. The simplest way to prevent it is to change:
dim gMyPictureH AS HANDLE TO Picture
dim gMyPictureH as Handle

Robert P.