Important: The information in this document is obsolete and should not be used for new development.
SRNewLanguageObjectFromDataFile
You can use theSRNewLanguageObjectFromDataFile
function to read a language object from a data file.
pascal OSErr SRNewLanguageObjectFromDataFile ( SRRecognitionSystem system, SRLanguageObject *languageObject, short fRefNum);
system
- A recognition system.
languageObject
- On exit, a reference to a new language object.
fRefNum
- A file reference number of an open data file.
DESCRIPTION
TheSRNewLanguageObjectFromDataFile
function returns, in thelanguageObject
parameter, a reference to a language object whose description is stored in the open data file that has the file reference number specified by thefRefNum
parameter.SRNewLanguageObjectFromDataFile
reads data beginning at the current file mark.If the language object is successfully created and initialized, the file mark is left at the byte immediately following the language object description. Otherwise, if the language object data is not appropriately formatted,
SRNewLanguageObjectFromDataFile
returns the result codekSRCantReadLanguageObject
as its function result and the file mark is not moved.SPECIAL CONSIDERATIONS
You should call theSRReleaseObject
function to release the language object reference returned bySRNewLanguageObjectFromDataFile
when you're done using it.