Java Native Interface (JNI) - How to pass objects(Class Instance) to Java from VC++

Hi!! I m new to Java. I have developed an application in Java to call my VC++ Dll.

I am successfully able to call the functions from DLL(VC++) and get their return values in Java application.(Using JNI)

Now i want to pass an object of a class to the Java app. This to get the access to the data members of the class in VC++ Dll from Java.

Can anyone help? Please Its very urgent.

I am using Eclipse 3.2 for Java development and Visual Studio 6.0 for DLL development.

[498 byte] By [Samayaa] at [2007-11-26 23:11:31]
# 1
You cannot pass C++ objects to java. You might pass an address, but you won't be able to do anything with it.You need to figure out the right C subroutines to code so that you can operate as you need to through java native methods.
bschauwejavaa at 2007-7-10 14:08:34 > top of Java-index,Java HotSpot Virtual Machine,Specifications...