When compiling and generating 64-bit applications in PowerBuilder 2022, you should pay attention to the situation that the return values of some functions such as Handle, Send and PrintOpen have been changed.
For example, the return value for PrintOpen function is Long in 32-bit and LongLong in 64-bit.
To support 64-bit applications, refer to Datatypes to find the variables whose datatypes need to be upgraded and change them as applicable.