32-bit Java Accessibility on a 64-bit machine

后端 未结 3 1015
抹茶落季
抹茶落季 2021-02-10 12:41

I have a 32-bit app that makes use of Java Accessibility (WindowsAccessBridge-32.dll, via the Java Access Bridge), and works perfectly on a 32-bit machine, but fails on an x64 m

3条回答
  •  再見小時候
    2021-02-10 13:11

    The call to 'initializeAccessBridge' REQUIRES you to have an active windows message pump. Inside 'initializeAccessBridge', it (eventually) creates a hidden dialog window (using CreateDialog). Once the dialog is created, it performs a PostMessage with a registered message. The JavaVM side of the access bridge responds to this message, and posts back another message to the dialog that was created (it appears to be a 'hello' type handshake between your app and the java VM). As such, if your application doesn't have an active message pump, the return message from the JavaVM never gets received by your app.

提交回复
热议问题