• 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
RE: Loading CFM shlb into a cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Loading CFM shlb into a cocoa app


  • Subject: RE: Loading CFM shlb into a cocoa app
  • From: "Phil Barrett" <email@hidden>
  • Date: Fri, 6 Jul 2001 08:14:06 +0100

> > I'm trying to load a CFM shlb (the OS X TWAIN library) using
> > GetSharedLibrary, which immediately crashes in CCFM_FSGetFileRef().
...
> I don't know exactly why you're having this problem--to get a real
> answer you'll probably need to ask on a Carbon list--but the Cocoaish
> way to load code is through NSBundle or CFBundle. In this case, since
> you're loading a non-Cocoa library, and in particular since it is CFM,
> you would use CFBundle. The tricky part might be getting your shlb
> inside of a bundle, but that shouldn't be impossible...note that
> CFBundle automatically takes care of the simple cross-ABI issues
> associated with calling CFM code from a dyld context.

Trouble is, it's not my shlb - it's the Carbon TWAIN library, and I can't
modify it.


References: 
 >Re: Loading CFM shlb into a cocoa app (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Let's hope XP doesn't keep this "one-up" on OS X!
  • Next by Date: And now for my next question(s)...
  • Previous by thread: Re: Loading CFM shlb into a cocoa app
  • Next by thread: Setting the clip, double buffering
  • Index(es):
    • Date
    • Thread