I need to convert a _bstr_t that comes from the DB (ADO) to float, have a look at the code segment:
_bstr_t valueDB = productsDB->Fields->GetItem("Value")->Value;
float referenceFloatValue = productsDB->Fields->GetItem("Value")->Value.fltVal;
I'm trying to use .fltVal, but it's not working (before the instruction the value of referenceFloatValue's 0.0, (different value of valueDB). Does anybody know what I need to do? Thanks