O'Reilly logo

Microsoft® Visual J#™ .NET (Core Reference) by John/Longshaw, Andy Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Invoking Methods in Unmanaged DLLs

Despite its aim of being a globally portable platform, the Java language has always acknowledged the potential need to interact with non-Java code. The Java platform defines the Java Native Interface (JNI), which allows a developer to create native language adapters (typically written in C or C++) for interfacing with non-Java libraries. JNI provides tools and defines language bindings, allowing you to pass Java objects and types to a native language adapter, which can then convert them to native language types before forwarding them to the target library. Although JNI can generate skeleton code for an adapter, you must implement the adapter yourself. Thus, although the scheme used is highly flexible, you must ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required