SAFEARRAY varArray = OleAutoUtil.createVarArray(1);
assertTrue(varArray != null);
}
public void testSafeArrayPutGetElement() throws Exception {
SAFEARRAY varArray = OleAutoUtil.createVarArray(10);
for (int i = 0; i < 10; i++) {
VARIANT variant = new VARIANT(new SHORT(i + i*100));
//System.out.println(variant.toString(true));
OleAutoUtil.SafeArrayPutElement(varArray, i, variant);