Mailing Lists: Apple Mailing Lists

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

QTNewDataReferenceFromFullPathCFString usage



Hello, 

I am writing a simple command-line app on Win32 using the QT 7.1 SDK that
exports the poster-frame in a MOV file to an image file (e.g PNG). 

When I attempt to get a dataref via
QTNewDataReferenceFromFullPathCFString() for a new (non-existent) image
file it returns an error of -50. 

What is the correct way to get a dataref for new and non-existent files? 

//My code (sans the error checks) 
imageStrRef = CFStringCreateWithCString (0,  argv[2], 0); 
QTNewDataReferenceFromFullPathCFString(imageStrRef, 
             kQTNativeDefaultPathStyle,
             0, &imageDataRef, &imageDataRefType);

Any pointers appreciated. 

Thanks,
Siddharth

PS: The imageDataRef will eventually be passed to
GraphicsExportSetOutputDataReference() . 

 _______________________________________________
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



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.