I am having trouble converting data from regular C arrays to the variant type data required for the function below. There are so many different types of variant conversion types in CVI. I have two arrays, one of shorts, and one of char strings. How do I convert them?
SetDataEx Method
Parameters iFieldArray An array of short integers (or pointers to short integers in VISUAL C++)
that represent the field IDs of fields for which to set the specified data. See ACT!
Databases for lists of field IDs and names (Field constants).
szValueArray An array of strings (or BSTRs in VISUAL C++) for the data to set to the
specified fields. The same number of elements must be specified for the iFieldArray and
the szValueArray parameters.
Note: In Visual C++, use VARIANT.pp
array instead of VARIANT.parray for pointers to
elements in the array.
Return type Void