DECLARE INTEGER ShellExecute IN shell32.dll ; INTEGER hndWin, STRING cAction, STRING cFileName, ; STRING cParams, STRING cDir, INTEGER nShowWin ShellExecute(0,"play","warning.wav","","",1)the second program dials the telephone with the lines:
DECLARE LONG tapiRequestMakeCall IN "TAPI32.DLL" ; STRING tcPhone, STRING junk, STRING junk2, STRING junk3 RetVal = tapiRequestMakeCall(lcphonenumber,"","","")Either of these will still work, but the problem is whichever of them is run first then locks out the other, even after the first is exited and gone. If the phone dialer is run first, a following attempt to play the *.wav file results in an error message to the effect that there is no sound card installed. If the *.wav is run first, the following attempt to dial the phone results in an error that says the server is not available.