• Post Reply Bookmark Topic Watch Topic
  • New Topic

how do i call a Cdll from java  RSS feed

 
dhriti joshi
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
i want to call a c++ dll from java,but i can not make any change in the c++ code as i have only the compiled version with me.so i think i can not use jni.is there any other way?
dhriti.
 
Shubhrajit Chatterjee
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why cant u use JNi ? Just use a JNi wrapper .. ie a JNi compliant c code which invokes your existing dll methods
 
dhriti joshi
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
when i use jni i will have to include the header file in c++ code and give prefixes to the mathods i need to call.when i do not have access to the code how can do it only with help of dll.
kindly help me as i am getting short of time.
dhriti.
 
Robert Paris
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, this is why you shouldn't cross-post. I answered this same question from you in another forum.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!