高手看过来,问了三天了 odbc问题
_____________________________________________________________________________________________-__
Apr.23.2001
source code:
try
{
short index=0;
mySet.GetFieldValue(index, varValue);
}
catch( CDBException* e )
{
TCHAR szCause[255];
e->GetErrorMessage(szCause, 255);
cout<<"error:"<<szCause<<end
}
异常讲:无效的描述符索引
我跟踪进去发现在GetFieldValue()函数调用GetData()函数时的
AFX_ODBC_CALL(::SQLGetData(hstmt, nFieldIndex,nFieldType, pvData, nLen, &nActualSize))
抛出的,而且其他CRECORDSET类的函数都可以正确的调用
有何建议