reverse
April 9th, 1999, 08:20 PM
<In Visual C++ & ADO>
I tried to retrieve a field which its Type property is "adLongVarChar" and SQL-DB datatype is "TEXT".
field = fields->GetItem(0L);
if(field->Type == adLongVarChar) {
_bstr_t str = _bstr_t(field->Value);
}
Above code have raied an error.
The error is "Visual C++ Run Time Error"
Why does it occur?
Thanks
A programmer who loves Goethe.
I tried to retrieve a field which its Type property is "adLongVarChar" and SQL-DB datatype is "TEXT".
field = fields->GetItem(0L);
if(field->Type == adLongVarChar) {
_bstr_t str = _bstr_t(field->Value);
}
Above code have raied an error.
The error is "Visual C++ Run Time Error"
Why does it occur?
Thanks
A programmer who loves Goethe.