• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Tim Cooke
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
Saloon Keepers:
  • Piet Souris
Bartenders:

how do i call a Cdll from java

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey, this is why you shouldn't cross-post. I answered this same question from you in another forum.
 
reply
    Bookmark Topic Watch Topic
  • New Topic