I'm currently working on a remote desktop in Java. The basic functions are all running already. However, the mouse cursor on the client-side (the controlling one) does not change accordingly to the mouse cursor from the server (the controlled one).
To solve this, I wanted to get the image of the cursor on the server-side via the getCursor() of c++ and then send it via TCP to the client to change the cursor there with the method JPanel.setCursor().
However, I program mainly in Java and have only a superficial knowledge of JNI and c++ general. I have unfortunately not found a post that I understood or that did what I wanted, so I wanted to ask here for help. How do I convert the HCURSER best to be able to then send it to my java-project via JNI?
question from:
https://stackoverflow.com/questions/65911187/how-to-send-the-hcurser-image-to-my-java-project-via-jni 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…