communicating between java code and visual c code

Posted on 2003-03-20
Medium Priority
Last Modified: 2010-04-01
hi friends.i have a application in java.i want the gui to be made in visual c.
is it possible to communicate between java classes and visual c files.
kindly elaborate.many thanks

Question by:riv9394
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3

Accepted Solution

akshayxx earned 140 total points
ID: 8173178
Hi riv9394,
yes it is very much possible , ever heard of JNI( java native interface)native language programming),
let me get you the tutorial link for this .. go throuth this and let us know if u got it.


Expert Comment

ID: 8173211
using JNI , u can call C/C++ functions  from java objects,
while the other way round is also possible , calling java code from C/C++ , but i dont think u'll need that for now, as the 'communication between java and c" can be achieved with JNI

u have to be more specific about your requirement.

if u have already written most of code in C and u want to use it in java, then JNI is the way to go ,
while if u have bunch of java classes and u want to invoke them from C/C++ then  the "other way"


Expert Comment

ID: 8173313
i just re-read ur comment ,, well i think u need to need to invoke the java classes from the VC code , for that  
go through following sample

Author Comment

ID: 8673427
dear friend
many thanks sorry for being late in awarding u ur points.
many thanks again

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question