Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI problem

 
jrmchen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am now using JNI to call C from Java . But some functions
need to get Structure pointer or more than one pointer value.
Can any one tell me how I can transmit pointer especially Structure Pointer to those C functions ?
I tend to tranmit a class , but failed.
Can Java function get a class as a parameter?
Thanks a lot !
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"jmchen",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't post the same message to more than one forum. You obviously expect to read more than one forum - so do the people who might answer your question. This thread is now closed, all replies to the one in "Java in General (advanced)".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic