Standard File Package

Standard File Package

Post by Mark J. Prescot » Sun, 08 Oct 1995 04:00:00



As a novice Pascal programmer, I have a question concerning the Standard
File Package.

My simple programs were ported to Codewarrior 5 from Think pascal.
Several use the StandardGetFile routine to obtain TEXT files for input.

However, the changes to the Universal headers in Codewarrior 6 and 7 mean
that the TypeList parameter has changed from a type of SFTypeList to a
type of ConstSFTypeListPtr.

I would be most greatful if anyone knows how to identify TEXT files using
the new type.

My programs use similar code to that illustrated in "Inside Macintosh"
,Files, on pages 3-14 and 3-15.

Thanks for reading...

Mark

 
 
 

Standard File Package

Post by Mark J. Prescot » Sun, 08 Oct 1995 04:00:00


As a novice Pascal programmer, I have a question concerning the Standard
File Package.

My simple programs were ported to Codewarrior 5 from Think pascal.
Several use the StandardGetFile routine to obtain TEXT files for input.

However, the changes to the Universal headers in Codewarrior 6 and 7 mean
that the TypeList parameter has changed from a type of SFTypeList to a
type of ConstSFTypeListPtr.

I would be most greatful if anyone knows how to identify TEXT files using
the new type.

My programs use similar code to that illustrated in "Inside Macintosh"
,Files, on pages 3-14 and 3-15.

Thanks for reading...

Mark

 
 
 

Standard File Package

Post by Mark J. Prescot » Sun, 08 Oct 1995 04:00:00


As a novice pascal programmer, I have a question concerning the standard
file package.

My simple programs were ported to Codewarrior from Think's Pascal.
Several use the standardGetFile routine to obtain TEXT files for input,
as illustrated in "Inside Macintosh" Files on pages 3-14 and 3-15.

However, the changes to the Universal headers in Codewarrior 6 and 7
mean that the TypeList parameter has changed from a type of SFTypeList
to a type of ConstSFTypeListPtr.

I would be most greatful if anyone knows how to identify TEXT or any
other files using the new type.

Thanks,

Mark

 
 
 

Standard File Package

Post by Colen Garoutte-Cars » Tue, 10 Oct 1995 04:00:00




> However, the changes to the Universal headers in Codewarrior 6 and 7
> mean that the TypeList parameter has changed from a type of SFTypeList
> to a type of ConstSFTypeListPtr.

Mark,

   Use the same structure, but pass a pointer to it to StandardGetFile.
This change to the argument type is a correction.  As the structure is
larger than 4 bytes, most compilers properly passed a pointer instead.

 - Colen Garoutte-Carson, Metrowerks Inc.

 
 
 

1. Standard File Package Routine

As a novice Pascal programmer, I have a question concerning the Standard
File Package.

My simple programs were ported to Codewarrior 5 from Think pascal.
Several use the StandardGetFile routine to obtain TEXT files for input.

However, the changes to the Universal headers in Codewarrior 6 and 7
mean that the TypeList parameter has changed from a type of SFTypeList
to a type of ConstSFTypeListPtr.

I would be most grateful if anyone knows how to identify TEXT files
using the new type.

My programs use similar code to that illustrated in "Inside Macintosh"
,Files, on pages 3-14 and 3-15.

Thanks for reading...

Mark

2. Calculate factorials

3. Standard File Package

4. NCR53C8XX pc file server

5. Help with Standard File Package: Bypassing sub-dialogs ?

6. Replacing an NT4 Print Server with a 2000 Print Server

7. Standard File Package <=> Folder

8. FS : 520 STfm

9. Multi File Standard Get file dialog

10. Having trouble packaging an appliaction package from CW on OSX using PackageMaker

11. How to make CW copy .icns files into my application package?

12. Can't copy rsrc file to package

13. CodeWarrior wipes package class files