Click to See Complete Forum and Search --> : Create DLL file to be used in other languages


tracy_chanus
September 21st, 2005, 08:29 AM
Is there any possibility to create a DLL file from C++ classes(my own c++ classes, non-MFC classes), and this DLL file could be used in other programming languages ,like JAVA?

thanks in advance! :wave:

cilu
September 21st, 2005, 08:50 AM
Yes, it is possible.

For Java interfacing native code see JNI (http://java.sun.com/docs/books/tutorial/native1.1/).

For Java - .NET interfacing see JNI.NET (http://caffeine.berlios.de/site/development/jni-net-guide.html).

If you need .NET cross language interfacing, it's much simplier. Just that the types exposed must be CLS compliant (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconWritingCLS-CompliantCode.asp).

NoHero
September 21st, 2005, 09:11 AM
[ Moved Thread ]