Important: The information in this document is obsolete and should not be used for new development.
SRNewLanguageObjectFromHandle
You can use theSRNewLanguageObjectFromHandlefunction to create a language object from the handle previously created by theSRPutLanguageObjectIntoHandlefunction.
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
TheSRNewLanguageObjectFromHandlefunction returns, in thelanguageObjectparameter, a reference to a new language object created and initialized using the private data to which thelobjHandleparameter is a handle. The data specified bylobjHandleshould have been created by a previous call to theSRPutLanguageObjectIntoHandlefunction; if that data is not appropriately formatted,SRNewLanguageObjectFromHandlereturns the result codekSRCantReadLanguageObjectas 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 theSRReleaseObjectfunction to release the language object reference returned bySRNewLanguageObjectFromHandlewhen you're done using it.
 
  
  
 