• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Loading CFM shlb into a cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Loading CFM shlb into a cocoa app


  • Subject: Loading CFM shlb into a cocoa app
  • From: "Phil Barrett" <email@hidden>
  • Date: Thu, 5 Jul 2001 08:27:35 +0100

I'm trying to load a CFM shlb (the OS X TWAIN library) using
GetSharedLibrary, which immediately crashes in CCFM_FSGetFileRef().

Str255 libName;
c2pstrcpy(libName, "TWAIN Source Manager.Shlb");
err = GetSharedLibrary(libName, kPowerPCCFragArch, kLoadCFrag, &connection,
&addr, errMessage);

The library is in the correct location (if it isn't, GetSharedLibrary
returns with an error code).

Am I missing something? Is there an initialize call required, or maybe
there's a better way to load a shlb into a dyld app?

(I realise this is more of a Carbon question, but I'm not on that list
because I want to avoid using Carbon as much as possible!)

Phil
--
Phil Barrett - CTO - Cambridge Animation Systems


  • Follow-Ups:
    • Re: Loading CFM shlb into a cocoa app
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Project Builder & CVS
  • Next by Date: Setting the clip, double buffering
  • Previous by thread: custom document icons per document file, not per document type
  • Next by thread: Re: Loading CFM shlb into a cocoa app
  • Index(es):
    • Date
    • Thread