Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with MSCOMM
Message
From
18/06/2005 13:38:43
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
 
To
18/06/2005 13:18:28
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows '98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01024584
Message ID:
01024617
Views:
24
>>Hi all
>>I want to make a programm that read phone numbers from a DBF and call to each of them and when connected play a sound file.
>>I can dialing a number with mscomm but i dont know how play a sound file and ...
>>Can anyone help me?
>>Thanks
>
>For what i understand your problem is not with MSCOMM, but how to play a sound in the system speaker, isn't it?
>
>If that is the question, you can do this:
>
>= playsound("C:\windows\media\chimes.wav")
>
>function playsound
> lparameters FileToPlay
>
> local mregister, mwave, mflag, mcall
>
> SET LIBRARY TO "FOXTOOLS.FLL"
> MREGISTER = REGFN("SndPlaySound","CI","I","mmsystem")
> MFLAG=1
> =CALLFN(MREGISTER,FileToPlay,MFLAG)
>
>return .t.
>
>
>You must have the file 'FOXTOOLS.FLL' visible, or in the program path (this file comes with all versions of VFP since VFP 3.0).
>You must also have visible a file called 'DDEREG.EXE', but i don't know if this file comes qith one of VFP versions. If you need it, send me your email and i send you a copy of this.
>
>Joaquim

No , i dont want to play a sound for myself. i want to play sound ( for exampla a news) for person that i call to him.
i want to play this sound file throgh modem .
Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform