Skip to content
Advertisement

Tag: jna

JNA calling CoInitialize when loading a dll

I’ve got a dll written in Pascal. I’ve determined that I need to run CoInitialize in the Java code, but I just can’t figure out how. I found another Stack Overflow thread which should have helped here: https://stackoverflow.com/questions/15763993 but I couldn’t understand how it actually worked. My current code that I have now is here: Answer Example of calling CoInitializeEx

GetWindowTextA, GetWindowText returns empty value on Edit Control

I’m trying to list and get the content of Edit Controls from an external Window in C++ / Java, unfortunately with no success. When I call GetWindowText or GetWindowTextA it returns an empty value on Edit Controls, I know there are some differences between GetWindowText / GetWindowTextW and GetWindowTextA but I don’t know What I’m doing wrong since it works

Advertisement