Professional Web Applications Themes

OpenADefaultComponent keeps returning -2003 error - Mac Programming

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 ...

  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. #2

    Default Re: OpenADefaultComponent keeps returning -2003 error

    In article <BB8D55B8.15192%edwardmagicmouse.com>,
    Edward de Jong <edwardmagicmouse.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

Similar Threads

  1. Error returning CFHTTP values
    By samb1 in forum Coldfusion - Advanced Techniques
    Replies: 0
    Last Post: March 3rd, 09:44 PM
  2. Error returning an XmlNode from a webservice
    By Dominic Messenger in forum ASP.NET Web Services
    Replies: 0
    Last Post: August 31st, 09:11 PM
  3. Debugging returning 401 HTTP error
    By Steven Cheng[MSFT] in forum ASP.NET Security
    Replies: 1
    Last Post: April 6th, 02:47 AM
  4. OpenADefaultComponent
    By Edward de Jong in forum Mac Programming
    Replies: 3
    Last Post: September 17th, 08:46 PM
  5. Vb6 object returning ADO Recordset - Error in .NET
    By Developer in forum ASP.NET General
    Replies: 0
    Last Post: August 11th, 03:27 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