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