I have been writing my TOWER CAB sim for quite a while now. I bought the Styx plugin to be able to use TextToSpeech. I wrote a little program that loads the VTEXT.DLL, sets a voice property, and speaks a phrase. Everything appears to be working well....until I introduce it into my very large TOWER CAB project. It appears that everything compiles fine, but the TOWERCAB.EXE refuses to execute. But, if I leave out Styx, TOWERCAB.EXE runs fine, or if I compile my little TTS test, it runs fine on its own. I have no idea what is causing the problem.
Here is the code to check for, and load the VTEXT.DLL
a=COM DLL AVAILABLE("vtext.dll", "TextToSpeech")
if a=1
Print "VTEXT can be loaded..."
else
Print "VTEXT was not found..."
endif
wait key
if a=1
load com dll "vtext.dll","TextToSpeech",1
print "VTEXT.DLL is loaded..."
endif
call com func 1, "Select", "I", 16
Set Com Integer 1, "Speed", 180
Call Com Func 1, "Speak", "S", "VEE TEXT DEE EL EL is now loaded"
wait key
Why the 2 won't work together is a mystery to me.