Populating Array Difficulty
I have built a program utilizing ADO to pull data from an Access Database. I am having problems taking this data which is formated as a _variant_t data type to a floating point array in C++. The following is the initial format of the array and the process that is attempting to populate this array. Can someone help me with a good source to learn about these conversions? Secondly, can someone help me with the proper code for the array so that it can be populated? At the bottom is the error message I am getting.
const int arraySize = 5000;
ADODB::_RecordsetPtr recOpen = NULL;
Open = pOpenField->Value;
printf("Data_Open: %4.5f\n", Open.fltVal);
printf("Record: %d\n", record);
Code = 800a0d5d
Code meaning = U
Source = ADODB.Recordset
Description = Application uses a value of the wrong type for the current operation.