SAFEARRAYs


The supported COM data types for an element of a SAFEARRAY are:

Thus, if x is one of these supported COM data types and y is the corresponding unscoped TIBCO ActiveEnterprise data type name:

Table 17 SAFEARRAY Supported COM Data Types
COM Data Type
Unscoped TIBCO ActiveEnterprise
Data Type Name
Scoped ActiveEnterprise Data Type Name
VT_SAFEARRAY
SAFEARRAY(x) in IDL
Sequence<y> 
MSequence 
/tibco/public/scalar/ae/sequence<y> or 
/tibco/public/class/ae/…/sequence<y> 

The scoped data type name depends on whether y is a TIBCO ActiveEnterprise scalar type or a TIBCO ActiveEnterprise class type.

TIBCO Adapter for COM supports only SAFEARRAYs of a single dimension. That is, the ActiveEnterprise class sequence <sequence<x>> is not supported.
Visual Basic runtime makes the declaration and handling of SAFEARRAYs transparent to the application developer. Therefore, inconsistent behavior may occur while handling SAFEARRAY/UDT's as [in, out] parameters from the Visual Basic runtime, depending on how the SAFEARRAY/UDT's are defined. The interceptor component of the adapter returns valid data back to the Visual Basic runtime, irrespective of how the [in, out] parameters are defined in Visual Basic. To ensure consistent behavior from the Visual Basic runtime, you must allocate memory in the client for the [in, out] parameters.


TIBCO Adapter™ for COM User’s Guide
Software Release 5.3, September 2005
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com