1. Yakov Werde
  2. PowerBuilder
  3. Wednesday, 26 July 2017 02:00 AM UTC

We have some 32 bit external function code that can't be ported to 64 bit.  We build a separate application that wraps that logic.  We are using TopWiz Computing's RunAndWait logic to lauch the 32 bit code from the 64 bit app (works like a charm)

In the past I have done something like this to call a Window custom01 event on an PB program

>>wm_user = 1024 is mapped to pbm_custom01

>>SendMessage( Handle of Window, Event Number, wordparm, longparm)

Wondering, Can I use this to call a custom01 event window in a different bitness application?  Or this handle bit specific.

PB has the longptr type.  Might this code work across bitnesses?

Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 26 July 2017 14:07 PM UTC
  2. PowerBuilder
  3. # 1

Sending messages using Winsock would work but I have been unable to get the socket or connect functions to work in 64bit.

Comment
There are no comments made yet.
Marco Sensken Accepted Answer Pending Moderation
  1. Wednesday, 26 July 2017 11:54 AM UTC
  2. PowerBuilder
  3. # 2

Hello Yakov,

that should not be a problem. Windows did not use the upper 32Bit of an 64Bit value for handels / GUI to enable communication between 32Bit and 64Bit. So windows truncate the LongLong values to Long see:

https://msdn.microsoft.com/en-us/library/windows/desktop/aa384203(v=vs.85).aspx

But pointer truncation / SendMessage seems to be a problem?

"... SendMessage functions truncate all pointer values, leaving the 32-bit application with a useless value."

https://msdn.microsoft.com/de-de/library/windows/desktop/ee872017(v=vs.85).aspx

Marco

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.