JNI .NET - Java calling native C++ and .NET
Three weeks ago I presented in SUN’s java technology day. I show interoperability between .NET and java in several ways- JNI (java native interface), DB (shared database), SOA (web services intergration), and open standards (with OPENXML).
Some people asked me to share the JNI code I demonstrated because there is very little documentation and examples out in the web of java calling C++ managed code, especially using visual studio 2005 and orcas.
This is a simple example of java application calling a native C++ dll and a managed C++ dll.
All you need to do is to download the files and follow the 1-5 instructions:
Installation:
1)Download the .NET and Java examples
2)Open the .NET solution and build it using visual studio 2005 or orcas.
3)In the java code (MyJNICall.java) reset the path to the location of the DLLs in your local disk.
4)Build the java code
5)Run the java application
Fixed - Thanks for letting me know!
We changed servers and I forgot to change the URLs - fixed.
Thanks for letting me know!
Visual Studio Version
I am running MS Visual Studio 2005 but when I try to open the solution, I get a message that it was created by a newer version.
What version of Visual Studio are you using?
Thanks
Alan Gregory
Re: Visual Studio Version
I am using Visual Studio 2008 Code Name Orcas.
http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx
But the source itself should work on VS 2005 too.


Missing files
Hi, the links for the sourcecode are broken, can you send me the examples to my mail? it's morfeo00 [at] gmail [dot] com
Thanx