Hi Guys,
I have a database table where the field is type integer.
In my program, i use
bstrTemp = static_cast< BSTR >(_myClass.m_QueryCommand.GetValue( 1 ) // using OLEDB consumer
the variable "bstrTemp" is type CComBSTR.
Lets say after retrieving the date from database, the value is 56(integer). When I execute the code above, bstrTemp will become "8" (string). How do I fill the value to integer type variable so that I get 56 (integer) instead of "8" (string)?
I'm stuck.. please advice..