i am working with vs 2005 and i want to call a c# class and methods from Java using JNI. kindly help with some example
G Makesh
Posts
-
call c# class from Java using JNI -
How compile this managed c++ help urgently neededhere CSharpHelloWorld.netmodule is in the bin folder of the managed c++ project #include #include "CSharpHelloWorld.netmodule" #include namespace System; public __gc class HelloWorldC { public: CSharpHelloWorld __gc *t; // Provide .NET interop and garbage collecting to the pointer. HelloWorldC() { t = new CSharpHelloWorld(); // Assign the reference a new instance of the object } // This inline function is called from the C++ Code void callCSharpHelloWorld() { t->displayHelloWorld(); } }; thanks in advance
-
How compile this managed c++ help urgently need [modified]#using #using"CSharpHelloWorld.netmodule" using namespace System; public __gc class HelloWorldC { public: CSharpHelloWorld __gc *t; // Provide .NET interop and garbage collecting to the pointer. HelloWorldC() { t = new CSharpHelloWorld(); // Assign the reference a new instance of the object } // This inline function is called from the C++ Code void callCSharpHelloWorld() { t->displayHelloWorld(); } }; thanks in advance -- modified at 4:57 Monday 19th November, 2007