>I need to pass a block of data values to a VFP COM Object as a single parameter from C++. The data is a set of short integers, some of which may have a value of zero. This block of data can be stored directly to a memo field with no processing. A C character array will not work because of the zero values. What is the best way to impliment this?
Why not simply pass a string containing comma-separated values, and then parse the string to extract the values on the VFP side, using itoa() to convert the ints to ascii strings, and then just string them together? On the VFP side, uou can spin through the string, taking the VAL of the string (VAL will stop when it hits a non-numeric character like a comma) and then dropping the portion of the string up to and including the first comma found using AT().