Ask a Question related to Mac Programming, Design and Development.
-
Edward de Jong #1
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
-
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... -
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... -
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... -
OpenADefaultComponent
It appears that OpenADefaultComponent doesn't want the codec code as a parameter; it instead wants to receive the quicktime file type constants.... -
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... -
Tom Dowdy #2
Re: OpenADefaultComponent keeps returning -2003 error
In article <BB8D55B8.15192%edward@magicmouse.com>,
Edward de Jong <edward@magicmouse.com> wrote:
Are you really passing an OSType as a string?> 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);
"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



Reply With Quote

