Loading CFM shlb into a cocoa app
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