Author Topic: Can anyone tell me where SAPIUTILS.inc can be downloaded?  (Read 2733 times)

0 Members and 1 Guest are viewing this topic.

Offline Ken Levin

  • Newbie
  • *
  • Posts: 3
  • User-Rate: +0/-0
Can anyone tell me where SAPIUTILS.inc can be downloaded?
« on: August 15, 2016, 01:53:20 AM »
Hi, I was trying to run some sample code posted by Jose demonstrating the use of SAPI and am unable to find the SAPIUTILS.INC file and don't see a dll using the PB Com browser that looks like it can be used to create the sapiutils.inc file.  I have the latest api headers file from Jose.

Thanks in advance.

Ken Levin

Offline Paul Elliott

  • Full Member
  • ***
  • Posts: 164
  • User-Rate: +40/-32
Re: Can anyone tell me where SAPIUTILS.inc can be downloaded?
« Reply #1 on: August 22, 2016, 04:55:50 PM »
Ken,

Check in SAPI.INC of the latest release. There is a section "H E L P E R    F U N C T I O N S"
at the end. It looks like Jose moved them onto the end of the main INC file.

You can probably just comment out the SAPIUTILS.inc line and see if it compiles.

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2481
  • User-Rate: +204/-0
Re: Can anyone tell me where SAPIUTILS.inc can be downloaded?
« Reply #2 on: August 22, 2016, 09:15:38 PM »
SAPIUTILS.INC belongs to the headers for the PB9 compiler and it is deprecated. The functions were incorporated in the SAPI.INC file in the headers for PB 10 and use the new WSTRING data type, instead of STRING and UCODE$/ACODE$.

Be aware that all the code written for PB9 that uses unicode needs to be changed for PB10.
« Last Edit: August 22, 2016, 09:17:30 PM by José Roca »