Important: The information in this document is obsolete and should not be used for new development.
SRNewLanguageObjectFromHandle
You can use theSRNewLanguageObjectFromHandle
function to create a language object from the handle previously created by theSRPutLanguageObjectIntoHandle
function.
pascal OSErr SRNewLanguageObjectFromHandle ( SRRecognitionSystem system, SRLanguageObject *languageObject, Handle lobjHandle);
system
- A recognition system.
languageObject
- On exit, a reference to a new language object.
lobjHandle
- A handle to a language object.
DESCRIPTION
TheSRNewLanguageObjectFromHandle
function returns, in thelanguageObject
parameter, a reference to a new language object created and initialized using the private data to which thelobjHandle
parameter is a handle. The data specified bylobjHandle
should have been created by a previous call to theSRPutLanguageObjectIntoHandle
function; if that data is not appropriately formatted,SRNewLanguageObjectFromHandle
returns the result codekSRCantReadLanguageObject
as its function result.You can use this routine to load language objects from resources (for example, by using the Resource Manager function
GetResource
).SPECIAL CONSIDERATIONS
You should call theSRReleaseObject
function to release the language object reference returned bySRNewLanguageObjectFromHandle
when you're done using it.