Professional Web Applications Themes

GetSharedLibary from Carbon MachO? - Mac Programming

My Carbon CFM application used to load plugins via GetSharedLibrary(). Now the application is converted to MachO, and it seems that the libraries cannot be found any longer (error code -2804). Where does a Carbon MachO application look for its plugins? What is the search path? PS: I know that LoadDiskFragment() could be an alternative, but not in my case, where the library name, not the library file name is given. PS/2: I found some glue code to call CFM (or PEF) functions from MachO, but this seems not to be from Apple. Is there an official solution?...

  1. #1

    Default GetSharedLibary from Carbon MachO?

    My Carbon CFM application used to load plugins via GetSharedLibrary().
    Now the application is converted to MachO, and it seems that the
    libraries cannot be found any longer (error code -2804).

    Where does a Carbon MachO application look for its plugins? What is
    the search path?


    PS:
    I know that LoadDiskFragment() could be an alternative, but not in my
    case, where the library name, not the library file name is given.

    PS/2:
    I found some glue code to call CFM (or PEF) functions from MachO, but
    this seems not to be from Apple. Is there an official solution?
    Andreas Guest

  2. #2

    Default Re: GetSharedLibary from Carbon MachO?

    In article <google.com>,
    de (Andreas Kromke) wrote:
     

    I was looking for this for someone else Apple has some examples

    I think what you are looking for (or a good start) is here

    Using CFBundle and CFPlugIn

    http://developer.apple.com/doentation/ReleaseNotes/CoreFoundation/CFBu
    ndleAndCFPlugIn.html

    Also this is CFM to MachO to CFM it seems to cover mixing CFM with Mach-O

    http://developer.apple.com/samplecode/Sample_Code/Runtime_Architecture/CF
    M_MachO_CFM.htm


    Ron

    --

    Metrowerks, maker of CodeWarrior - "Software Starts Here"
    Ron Liechty - com - <http://www.metrowerks.com>
    MW Guest

  3. #3

    Default Re: GetSharedLibary from Carbon MachO?

    de (Andreas Kromke) wrote in message news:<google.com>...
    (...)

    OK. If nobody else uses GetSharedLibrary(), I will write a bug report
    to Apple. Maybe they have an idea or at least confirm that there is a
    bug.
    Andreas Guest

Similar Threads

  1. How to learn Carbon
    By Steve in forum Mac Programming
    Replies: 2
    Last Post: December 10th, 05:51 AM
  2. Replies: 19
    Last Post: December 3rd, 10:32 AM
  3. OSX Carbon Console???
    By Dr. Michael M. Cohen in forum Mac Programming
    Replies: 3
    Last Post: September 16th, 02:32 AM
  4. resource mgr problem MachO app pkg
    By brucecoughlin in forum Mac Programming
    Replies: 2
    Last Post: July 19th, 09:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139