Mailing Lists: Apple Mailing Lists

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

FSSpec on Windows -- Help!



I've searched the archive and haven't found this specific answer. Apologies if I missed it.

I'm trying to create an FSSpec on Windows XP. I've tried both NativePathNameToFSSpec and FSMakeFSSpec with no luck

Here is a sample of the code:
/***************SAMPLE********************/
OSErr err=noErr;
char *file;
FSSpec ImportedFile;
char pathName[255]; // Buffer for pathname

file="c:\\tt.mov";
strcpy(pathName, file);

StringPtr pFileName = QTUtils_ConvertCToPascalString(file); //this successfully converts to a Pascal string
err = FSMakeFSSpec (0, 0L, pFileName, &ImportedFile); //this returns error -2095
/***************END***OF***SAMPLE********************/

The pFileName string pointer holds the proper value (a Pascal string of the full file name and path), but the FSSpec gets these values:

vRefNum: -13108
parID: -858993460
name: empty string (looks like IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII etc.)

What's going on here? InitializeQTML and EnterMovies are called without error in my main procedure, so I'm not sure what err -2095 is trying to tell me.


Thanks in advance,

Ron


--
Ron Miles
Project Engineer
Lenox Softworks
413-637-0099 x133
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.



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.