32-bit Java Accessibility on a 64-bit machine

后端 未结 3 1254
臣服心动
臣服心动 2021-02-10 12:38

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:27

    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.

提交回复
热议问题