Thread-topic: Unicode paths in Quicktime - Windows
Hi all,
I'm using QT 7 API on Windows to create QuickTime reference files from
media files stored on my Windows PC. The path names are in Unicode.
There are a couple of places in my code that use QT API that deal with
paths and I'd like to know the correct usage and API to use.
1. I need to provide a handle to a file for the NewTrackMedia() API. I
believe I should use the following sequence to create a data reference -
DataReferenceRecord dataRef;
CFStringRef pathstr = CFStringCreateWithCharacters(0,
filePath,
SIZEOF_MY_BUFFER);
QTNewDataReferenceFromFullPathCFString(pathstr,
kQTNativeDefaultPathStyle, 0, &dataRef.dataRef, &dataRef.dataRefType);
I then pass in the dataref.dataRef and dataref.dataRefType to the
NewTrackMedia API call. Is this the right way to do this ?
filePath - This is a wchar_t buffer of some number of characters
SIZEOF_MY_BUFFER. Wchar_t is just a Visual C++ typedef for unsigned
short which should be the same as UniChar.
2. I intend to use the CreateMovieStorage() call to create an empty
QuickTime reference file . I need to pass a handle to the output QT
reference file on my file system say, c:\my directory\qtoutput.mov or
some such Unicode path in my file system.
Do I write exactly the same sequence of calls as above to create a data
reference to the Unicode file path ?
I will then pass in the handle to the CreateMovieStorage() call followed
by a PutMovieIntoDataFork() call to fill in the newly created file.
Thanks in advance,
Deepak Paul
_______________________________________________
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