Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About mcertini

  • Rank
  1. 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; _variant_t OpenArr[arraySize]; ADODB::_RecordsetPtr recOpen = NULL; while(!recOpen->EOFile) { record++; Open = pOpenField->Value; Open.ChangeType(VT_R4); printf("Data_Open: %4.5f\n", Open.fltVal); printf("Record: %d\n", record); OpenArr[record]=recOpen->GetRows(-1,0); recOpen->MoveNext( ); } Data_Open: 1.41283 Record: 1 Error Code = 800a0d5d Code meaning = U Source = ADODB.Recordset Description = Application uses a value of the wrong type for the current operation.
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!