[futurebasic] Using PICT and sound files

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1999 : Group Archive : Group : All Groups

From: "Jeffrey Schwartz" <jeffrey.schwartz@...>
Date: 7 Jun 1999 22:37:15 -0400
I'm writing an application that needs to open and display PICT files (not resources) and open and play sound files (not resources).

The Handbook gives a pretty thorough description of how to open a PICT file and read the PICT into memory associated with a handle.  How can I display this PICT?  Can I use PICTURE FIELD as I do with PICT resources?  Do I have to use CALL DRAWPICTURE or PICTURE and worry about updates myself?

And how can I play a sound from a sound file?  Most of the sound files I've seen have the sound as a 'snd  ' resource number 128 so I could just get the resource from the file.  But it seems that not all sound files use 128.  Is there a more general way?

Thanks in advance for any advice.

Jeff Schwartz