OpenADefaultComponent keeps returning -2003 error

Ask a Question related to Mac Programming, Design and Development.

  1. #1

    Default OpenADefaultComponent keeps returning -2003 error

    I am doing exactly what Apple recommends in Q&A QTMTB56, where I want to
    explicitly open a graphics converter component.

    I am calling err = OpenADefaultComponent (GraphicsImporterComponentType,
    "jpeg", &ci);

    I am getting error -2003; i tried the quickdraw type ('qdrw'), but it also
    gets the same error. There are no precedent calls necessary to
    OpenADefaultComponent, so why in the heck is this not working? I know that
    my memory buffer is a JPEG, or PICT, etc., and so I know which codec to ask
    for (i remember the codec during the original import of the image).

    Can somebody help me here?


    Edward de Jong Guest

  2. Similar Questions and Discussions

    1. Error returning CFHTTP values
      Im trying to parse some html to get all the href values from it. Once I have the href's I try to remove the html tags from them and add the...
    2. Web Service Returning DataSets Error
      Hi! I find it awkward that some of my methods returning a typed dataset runs ok. While some throws an error saying 'object not set to an...
    3. Error returning an XmlNode from a webservice
      I am using WSE 2.0 and ASP.NET to consume two webservices. The first works fine 100% of the time - the second doesn't. The first has a signature...
    4. OpenADefaultComponent
      It appears that OpenADefaultComponent doesn't want the codec code as a parameter; it instead wants to receive the quicktime file type constants....
    5. Vb6 object returning ADO Recordset - Error in .NET
      Hi, My C#, ASP.NET application uses com-interop to call a vb6 method which returns a ADO 2.6 recordset. I can successfully call the COM...
  3. #2

    Default Re: OpenADefaultComponent keeps returning -2003 error

    In article <BB8D55B8.15192%edward@magicmouse.com>,
    Edward de Jong <edward@magicmouse.com> wrote:
    > I am doing exactly what Apple recommends in Q&A QTMTB56, where I want to
    > explicitly open a graphics converter component.
    >
    > I am calling err = OpenADefaultComponent (GraphicsImporterComponentType,
    > "jpeg", &ci);
    Are you really passing an OSType as a string?

    "jpeg" will result in a pointer to a static string containing the bytes
    for "jpeg" whereas 'jpeg' will contain those bytes themselves. You want
    'jpeg' and not "jpeg".

    This error would have likely been detected at compile time by turning on
    higher levels of warnings and errors within your development environment.

    The only other thing I could see as a problem would be:
    - failure to call EnterMovies() someplace in your application
    - running on a system with a minimal install of QuickTime. This could
    possibly be the case on OS 9 or Windows, but not on OS X.
    Tom Dowdy Guest

Posting Permissions

  • You may not post new threads
  • You may 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