Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TAPI problems
Message
From
13/09/2005 18:27:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
TAPI problems
Miscellaneous
Thread ID:
01049263
Message ID:
01049263
Views:
54
Our office recently upgraded its PC's and in the process broke 2 of my programs that had been working fine until now. The new PC's are Gateway P4s running XP servpk 2. The old machines were running win98 and win2000.

The first program makes a simple call to windows to play a wav file using the commands:
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.

The only fix to reenable the failed program is a cold boot. A warm boot won't do.

Any thoughts on what's going on here?

I should mention that the tapi device is dialing through a digital network and not a modem.

Thanks for any help on this one.

- Don
Reply
Map
View

Click here to load this message in the networking platform