Applications Previous
Previous
Welcome
Welcome
Next
Next

Java->COM and COM->Java communications

This sample demonstrates Java->COM and COM->Java communications.

The sample is invoked from Java. The constructor of the class we invoke instantiates a COM-implemented object. Three methods are then exercised.

The first two methods take and return numeric arguments. The third method instantiates a Java-implemented object, and passes the interface pointer back to Java, caching a local copy for its own use later on. The new java object is then used from both Java and COM transparently. That is, the COM object treats it no differently than any other COM object, and Java treats it as a Java object.

For more detailed information, please reference the Readme.txt file.


Top © 1996-1997 Microsoft Corporation. All rights reserved.