1. Jose Reyes
  2. PowerBuilder
  3. Tuesday, 26 May 2020 18:33 PM UTC

I have a legacy client/server application that invoked compilentryimport function of PBORC12.5. After migrating to PB 2019 and using PBORC190.dll the same code block returns a -4 or 0 in some instances and does not import the PB Objects.
The compileentryimport function appears to not have changed arguments list and the argument order remained the same. Any help with resolving this issue is much appreciated. Thank You.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 27 May 2020 19:02 PM UTC
  2. PowerBuilder
  3. # 1

Hi Jose;

  FYI:  Sybase changed the way PB structures are organized and passed in PB 12.6 and Appeon PB is based on the PB 12.6 baseline code that we received from SAP in 2016. So I wonder if that change might have affected your ORCA API execution. The v12.6 change is called the "progma_pack", as follows:

FYI:  https://www.appeon.com/developers/get-help/knowledgebase/use-1-byte-structure-member-alignment-external-function-64-bit-pb-applications.html

  In PB 12.5 when passing a structure, the memory boundary alignment would have used the 1 byte method but in PB 12.6, that changed to using a default 8 byte (double_word) boundary memory alignment. In order to return to PB 12.5's 1 byte alignment method, you might need to add the "progma_pack(1)" to your ORCA API external declarations within in your PB App. You can read more about this  as well in the PB Help if you search on the keyword "progma_pack".

 Note that in the IDE, a quick way to test this is the "Use 1-byte structure member alignment in external function" setting in the System Options" dialogue. When ON, the 1 byte alignment method is used for the Apps executing from within the IDE. If that quick change works, then we'll know that the "progma_pack" setting is indeed the issue.

HTH

Regards ... Chris

Comment
There are no comments made yet.
Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 27 May 2020 03:38 AM UTC
  2. PowerBuilder
  3. # 2

Hi Jose,

What is the version of the pbl object you imported? Is it PB 2019?

There is a case included in the link below, it uses the PBORCA_CompileEntryImport function. I suggest you refer to the link below and see how to use it.

https://community.appeon.com/index.php/codeexchange/powerbuilder/239-icon-replace-tool-for-pb-2019

If the issue still exists, please submit a ticket in the Appeon Support Ticket system (https://www.appeon.com/standardsupport/newbug) and also provide a small case when submitting it. Thanks in advance.

 

Regards,

Ken

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.