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 ULONG or DWORD is PB ULong.
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.