realbasic-nug
[Top] [All Lists]

"Resource not found!" error

To: realbasic-nug@lists.realsoftware.com
Subject: "Resource not found!" error
From: Lennox Jacob <lenpartico@yahoo.com>
Date: Wed, 31 Dec 2008 06:58:39 -0800 (PST)
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; domainkeys=hardfail (test mode) header.From=lenpartico@yahoo.com
Delivered-to: listarchive@realsoftware.com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=ND5fdd8QA+H3FWryNS0pHaWrsznHOFZVMIKjzAX2/YT9Jy86iwLrrxIyPWQ81cQvfac1P4roZFVvETSTfeELEpTa+j35wYVwaBvwtv4gI/XkuvhupK26cFTFkzMKp9RJgPSB5EPOgpqYqwuPk/njug8Ry3ddLZyPyhanNoRoFYI=;
Domainkey-status: bad (test mode)
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Hello,

I got this example from the LR but when I run it I am getting this message - 
"Resource not found!".


  'This example gets the desktop application icon for Photoshop® and displays 
it in a Canvas control.
  #if TargetMacOS then
    Dim rf as ResourceFork
    Dim f as FolderItem
    Dim p as Picture
    'f= GetFolderItem("Photoshop") I don't have Photoshop, but I have Safari
    f= GetFolderItem("Safari")
    If f <> Nil then
      rf=f.OpenResourceFork
      If rf <> Nil then
        p=rf.Geticl(128)
        Canvas1.backdrop=p
      Else
        MsgBox "Resource not found!"
      End if
    Else
      MsgBox "File not found!"
    End if
    
  #Else
    msgbox "Sorry, but access to the resourcefork is supported only on 
Macintosh"
  #endif

How can I fix that?

Thanks.

Lennox




      

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>