--- In [email protected], "entropyreduction" 
<alancampbelllists+ya...@...> wrote:
 
> To make a SAFEARRAY, you have to set its bounds and dimensions.
> In particular, you have to set lower bounds for each dimension 
> 
> (e.g.:
> 
> http://support.microsoft.com/default.aspx?scid=kb;EN-US;216686 )
> 
> In that example, lower bound of 1 is being used.  I imagine that's 
> application/argument dependent.  So how to communicate to powerpro which 
> lower bound (0 or 1) is required?  I guess I'll default to one, and have to 
> provide a typespec to override the default.  

I'll need to provide a type spec which at fullest might look like ths

  avi03_2_4_4

a:         array type
v/r/blank: by ref or value
i:         integer in this case: 
           type contained in array, blank means VT_VARIANT
0/1:       lower bound of all dimensions 
2:         # dimensions, 2 in this case
4, 4:      upper bound of each dimension

Assuming no one ever makes a 2 d array with lower bound 0 in one dimension, 1 
in another.

If no typespec provided, dimensionality derived from vec provided as input, 
VT_VARIANT contents assumed, either 0 or 1 Lbound assumed (dunno which yet).




Reply via email to