FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour PhoneTO
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
PhoneTO
Posted: Thu Jan 04, 2018 04:29 PM
Hello,

Does anyone has an idea why this function is not working anymore?
Code (fw): Select all Collapse
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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: PhoneTO
Posted: Thu Jan 04, 2018 05: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 March-April 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
Posts: 375
Joined: Tue Feb 10, 2015 09:48 AM
Re: PhoneTO
Posted: Thu Jan 04, 2018 08: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.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: PhoneTO
Posted: Fri Jan 05, 2018 09: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
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: PhoneTO
Posted: Fri Jan 05, 2018 01: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. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: PhoneTO
Posted: Sat Jan 06, 2018 06:55 AM

Michel,

Please replace DLL32 with DLL and try it again

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: PhoneTO
Posted: Sat Jan 06, 2018 04: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 March-April 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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: PhoneTO
Posted: Sat Jan 06, 2018 07:23 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: PhoneTO
Posted: 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.08 with Harbour

Continue the discussion