[3574] in java-interest
Connecting Java with C++ objects
daemon@ATHENA.MIT.EDU (Gino van den Bergen)
Thu Nov 16 13:12:27 1995
From: gino@win.tue.nl (Gino van den Bergen)
To: java-interest@java.sun.com
Date: Thu, 16 Nov 1995 16:08:19 +0100 (MET)
Suppose I have a C++ library for operations on 3D objects such as
vectors, polygons etc. I would like to create a Java API on this C++
library. I could create a Java class for each C++ class and implement
each method as a native C functions. The problem is: How do I connect
the C++ objects with the Java objects. For instance, a Vector object
will contain x, y and z components, which are manipulated by C++
methods. I don't want to know the x, y and z values in Java, but I do
need to have my Java vector object have a reference to the C++ objects.
How is it done? Has anyone come across this problem already?
Gino van den Bergen
gino@win.tue.nl
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com