1. Roland Smith
  2. PowerBuilder
  3. Friday, 15 July 2022 03:31 AM UTC

I've been beta testing PB 2022 and 64bit.

The IDE can Debug/Run your app in 64bit mode. This makes it much easier to test external function declarations.

I have found that it is less forgiving if you use the wrong datatype. I had to update half of the code examples on my website.

Here are some tips:
If an API argument is a Handle or Pointer, always use LongPtr.
An INT or LONG is a PB Long.
A SHORT is a PB Integer.
A USHORT is a PB UInt.
Make sure to pre-allocate any string or blob variables that are 'by ref'.
Many API functions have a number argument that is the length of a blob or string 'by ref' argument. Make sure to read the documentation because some expect bytes and some expect characters.
When pre-allocating a blob, remember that Blob(Space(250)) will result in a blob that is 500 bytes. Use Blob(Space(250), EncodingAnsi!) to get 250 bytes.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 15 July 2022 14:34 PM UTC
  2. PowerBuilder
  3. # 1

Hi Roland;

   Yes, because PB2022 is compiled in a much newer release of the C++ compiler - these external function calls, structure settings and data type changes will be necessary for all PB Apps migrating to PB2022 that use any type of external DLL API calling. Especially in the 64bit realm. I have already significantly refactored my STD Framework for PB2022 (back in April). Everyone is most welcome to test out the latest version of the framework that will work for PB 2021 & PB2022 here:


  These framework versions now also have all the feature support removed for those features fully deprecated in PB2022.


Regards ... Chris

There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Friday, 15 July 2022 12:52 PM UTC
  2. PowerBuilder
  3. # 2

This page defines all the Windows API datatypes:


There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Friday, 15 July 2022 08:25 AM UTC
  2. PowerBuilder
  3. # 3

Hi Roland.

Thank you for sharing this information.

You are doing great work.


  1. Steen Jakobsen
  2. Monday, 18 July 2022 06:24 AM UTC
well said. I really apricate Rolands work to.
  1. Helpful
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.