Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QTNewDataReferenceFromFullPathCFString returns -37




On Jun 1, 2006, at 5:36 PM, Paul Deepak wrote:

Hi all,

Using Windows QT SDK ver 7 and Visual Studio 7. 

QTNewDataReferenceFromFullPathCFString() does not seem to work when I
pass it a data ref to a Unicode path. It may be as simple a path as
"c:\somedir\somesubdir\myfile.mov". I tried with Chinese chars too. The
code is as follows - 

// tmpPath is a wchar_t array of size SOME_SIZE. Wchar_t is a typedef'ed
as // an unsigned short in my VC++ compiler. 

DataReferenceRecord dataRef;
CFStringRef pathstr = CFStringCreateWithCharacters(0, (UniChar*)tmpPath,
SOME_SIZE);

QTNewDataReferenceFromFullPathCFString( pathstr, kQTWindowsPathStyle, 0,
&dataRef.dataRef, &dataRef.dataRefType);

QTNewDataReferenceFromFullPathCFString() returns an OSErr of -37 which
seems to be defined as -

bdNamErr                      = -37,  /*there may be no bad names in the
final system!*/ in macerrors.h

I have tried the following -

1. Used kQTNativeDefaultPathStyle
2. Used CFStringGetCharactersPtr() after the call to
CFStringCreateWithCharacters() to verify the buffer contents and my
debugger IDE recognized the string so it apparently is good ?

Please help. I'm not sure what to try next.

Thanks.


See <http://developer.apple.com/qa/qa2005/qa1413.html>.

________________________________

Scott Kuechle

Worldwide Developer Technical Support

Apple Computer, Inc.

<http://developer.apple.com>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden

References: 
 >QTNewDataReferenceFromFullPathCFString returns -37 (From: "Paul Deepak" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.