Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

PowerBuilder xor FUNCky migration issue from PowerBuilder 9 to PowerBuilder 2017 – PB Docs 2022 – PowerBuilder Library

PowerBuilder xor FUNCky migration issue from PowerBuilder 9 to PowerBuilder 2017 – PB Docs 2022

PowerBuilder xor FUNCky migration issue from PowerBuilder 9 to
PowerBuilder 2017

Symptom

Migrating an application, which declares an external xor function,
in this instance the Funcky32.dll library, from PowerBuilder version 9
to 2017 will produce syntax errors.

Environment

OS: Windows (any supported version) 3rd party: Funcky Library
PowewrBuilder Reproducing the Issue

The error can be reproduced using the following steps:

  1. Unzip attached PB9_funcky_xor.zip
    file into a local directory.

  2. Open pb9_funcky_xor.pbw workspace in PowerBuilder 9.

  3. Run application and a MessageBox will display.

  4. Open the same application in PowerBuilder 2017.

  5. You will be prompted to migrate. Click OK.

  6. Click OK again to initiate migration.

  7. The build will fail with an error.

  8. The Errors tab of the Output window will display the following
    error:

Cause

The migration error is due to ‘xor’ being added as a reserved word
in PowerBuilder.

Solution

If you remove or rename all external function declarations to xor:
FUNCTION int xor(int n,int v) LIBRARY “FUNCky32.DLL” the application
will migrate and compile properly.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x