Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
173 views
in Technique[技术] by (71.8m points)

c++ - How to send the HCURSER image to my Java project via JNI

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...