[futurebasic] Re: [FB] Carbon Differences ( updating some Derek code)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2003 : Group Archive : Group : All Groups

From: michael evans <michael.evans@...>
Date: Fri, 09 May 2003 12:52:18 -0400
on 5/9/03 4:28 AM, Robert Purves at robert.purves@...
wrote:

> Use RezLib. It's a freeware shared library by Ian Ollman that does
> monitor fades and resolution switching in OS 8/9 and in OS X.  I don't
> have an up-to-date URL, but a Google search will find it.


Robert:

Easy for you to say...

But for those of us with small brains who haven't a clue how to use a shared
library or even to set up the data types from the C header files it's quite
mysterious.

I used Derek's stuff in 68K and ppc and RezLib looks like just the ticket
for OSX.

I found RezLib on version tracker

To be specific, I have a two-device (two-monitor) system.
Device01 displays the finder menu bar.
Device02 could be anywhere, but in my monitor setup it's desktop screen is
immediately to the left of Device01.

What I want to do is a slide show:

Device02: Get current gamma
Device02: Fade to black
Device02: Display a new picture
Device02: Restore to current gamma

OK, so far I've set up a folder with the following files in it:

Show Library Call   s====> from libraries example folder
Check For Library   =====> from libraries example folder
RezLib              =====> type = "shlb"

I can't get Check For Library to work with RezLib

dim libraryName$
libraryName$= "RezLib"

print  "Search for library called : "libraryName$

long if fn FBTestForLibrary(libraryName$)
print "Library found"
xelse
print "Library not found"
end if

Obviously I'm clueless about something very basic here....


Cheers,

----------------------------------------------------------------------------
Michael Evans
----------------------------------------------------------------------------