# Loading the Main Dictionary (Static Engine)

The TextToSpeechStartup call attempts to find the dictionary in the home directory of the statically linked application. If that fails, the TextToSpeechStartup call then looks in the defined PATH of the Windows OS. The file name in either case is DTALK_lang lang.DIC. If the PATH look up fails, then the value from the registry entry for the static engine is used. The registry entry for the static engine is:

REGISTRY KEY:

HKEY_LOCAL_MACHINE\SOFTWARE\DECtalk Software\DECtalk\static\lang lang

Value: MainDict

If the main pronunciation dictionary fails to be loaded, then the TextToSpeechStartup call returns a value of MMSYSERR_ERROR.

Related topics