Microsoft SDK for Java

makeProxyRef

This method of the ComLib Class increments the reference count on a COM object.

Syntax

public native static Object makeProxyRef(Object o);

Return Value

Returns a Java callable wrapper that holds a reference to the COM object. When the returned JCW is garbage collected, the reference is dropped.

Parameters

o Any Java object that can be mapped to a COM object.

Remarks

This method was added as of versions 2437 through 2925 of the Microsoft virtual machine.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.