How to call C++ function like this...

hi!everyone!i have a C++ function like this:java_call_c::test()how do i write codes in java in order to call the function ?thanksa lot !!!
[173 byte] By [mawmawmawa] at [2007-11-26 17:04:21]
# 1

Actually there is no way to write C code with C++ functions (as well as you can't call Pascal functions).

But you can create function in C style to call C++ function.

void test( )

{

java_call_c c = new java_call_c( );

c->test( );

delete c;

}

:)

Michael.Nazarov@sun.coma at 2007-7-8 23:32:08 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
i'm sorry but all i need is to write the Java codeto call the C++ functionjava_call_c::test(){...}sohave someone can tell me how to write the java code
mawmawmawa at 2007-7-8 23:32:08 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Someone just got through telling you that you can't do it.THE JNI INTERFACE IS A C INTERFACE.
bschauwejavaa at 2007-7-8 23:32:08 > top of Java-index,Java HotSpot Virtual Machine,Specifications...