Skip navigation.
 
mlHelp - using FSMakeFSSpec
FROM : Pradnya Dharia
DATE : Mon Dec 13 22:02:38 2004

Hello,

  I am trying to open a file and write sometime to it.

  I am working on Mac OS  10.2.8

  This is what I have written:

   char testPath[256];

        Str255  pas_path = "";

        sprintf(testPath, "%s", "\p:output.txt");

        CopyCStringToPascal((const char *)testPath,pas_path);

        FSSpec file_handle;

        OSStatus oserr = FSMakeFSSpec(0,0,(unsigned char
*)&pas_path,&file_handle);

        if(oserr != noErr) {

                   ShowMessage("eror making FSSpec ",(const char *) &pas_path);

                  }


I keep getting an error while trying to use this function.

Could you please tell me if I am missing something ??

Related mailsAuthorDate
mlHelp - using FSMakeFSSpec Pradnya Dharia Dec 13, 22:02
mlRe: Help - using FSMakeFSSpec David Dunham Dec 13, 23:02