PhoneTO

PhoneTO

Postby driessen » Thu Jan 04, 2018 4:29 pm

Hello,

Does anyone has an idea why this function is not working anymore?
Code: Select all  Expand view  RUN

DLL32 Function PhoneTo(cPhoneNo As LPSTR,cAppName AS LPSTR,cName AS LPSTR,cComment AS LPSTR) AS LONG PASCAL FROM "tapiRequestMakeCall" LIB "tapi32.dll"
........
PhoneTo(IF(US->USTELNUL,"0","") + ALLTRIM(cTelNr),"wordt opgebeld door",ALLTRIm(cTelNm),ALLTRIM(US->USERNAAM))
 
This function used to be working very fine. I use it to make a phonecall by pushing a button next to the phone number.
If I push the button now, the dialer is opened, but the phone number is not visible and the call is not made.

Anyone any idea?

Thanks.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: PhoneTO

Postby Silvio.Falconi » Thu Jan 04, 2018 5:13 pm

Can I have a small test sample to try ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: PhoneTO

Postby AntoninoP » Thu Jan 04, 2018 8:17 pm

I think you have to replace tapiRequestMakeCall with tapiRequestMakeCallA , see https://msdn.microsoft.com/en-us/library/ms737210(v=vs.85).aspx.
A lot of windows method has 2 versions, ending with A for Ansi version and with W for wideChar version, then define the version without suffix based on unicode compilation option.
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: PhoneTO

Postby Antonio Linares » Fri Jan 05, 2018 9:13 am

Michel,

Please do a MsgInfo( PhoneTo( ... ) ) so we can check the return code:

Return value
Returns zero if the request succeeds or a negative error number if an error occurs. Possible error return value are:

TAPIERR_NOREQUESTRECIPIENT, TAPIERR_INVALDESTADDRESS, TAPIERR_REQUESTQUEUEFULL, TAPIERR_INVALPOINTER.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: PhoneTO

Postby driessen » Fri Jan 05, 2018 1:07 pm

Antonio,

I tried your suggestion. The value 0 is returned.

The dialer screen appears, but without phone number. For the rest, nothing happens.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: PhoneTO

Postby Antonio Linares » Sat Jan 06, 2018 6:55 am

Michel,

Please replace DLL32 with DLL and try it again
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: PhoneTO

Postby Silvio.Falconi » Sat Jan 06, 2018 4:49 pm

Antonio,
can I have a sample to make a test here with phoneto ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: PhoneTO

Postby Antonio Linares » Sat Jan 06, 2018 7:23 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42127
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: PhoneTO

Postby Marc Venken » Sun Jan 07, 2018 12:26 pm

Hey Michel,

Do you install the tapi on every PC where you want to use the phone system?

I have a Panasonic KX-NCP500 system witch is used over LAN. There is a Panasonic Software, that only shows the popup of the dialing number,
but if I want to do more with it, I need to have the Phonenumber.

I tried with Sockeds and the Samples in FW, but never succeeded. Just can't read the data from the Phone system.

Maybe I can better move back to Tapi to get the system working.

I suppose also that I need to find the Tapi driver from Panasonic

Do you use only Tapi on your Software ? even ano 2018 ??
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1447
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests