tlb2java maps COM properties to Java methods with get and set
prefixes. In the example below IDual
has a property
called PropBSTR
. The OLE Automation type
BSTR
is mapped to Java's String
type.
private void useDual(Dual dual) { String v = "123"; dual.setPropBSTR(v); assertEquals(v, dual.getPropBSTR()); }