求助,Oracle中用RecordSet->Open() 报错,详细错误提示如下,请帮忙解决,谢谢
具体代码如下:
C/C++ code
try
{
m_pRecordset->Open("SELECT * FROM stuinfo", _variant_t((IDispatch*)theApp.m_pConnection,true) ,
adOpenStatic,adLockOptimistic,adCmdText);
m_bSuccess = TRUE;
}catch(_com_error e)
{
AfxMessageBox(L"读取数据集失败!");
}
错误提示如下:
1.在adOpenStatic下面有红色波浪线
并提示:IntelliSense: argument of type"Cursor TypeEnum" is incompatible with parameter of type"ConnectModeEnum"
2.在adLockOptimistic下面有红色波浪线
并提示:IntelliSense: argument of type"Cursor TypeEnum" is incompatible with parameter of type"RecordCreateOptionsEnum"
3.在adCmdText下面有红色波浪线
并提示:IntelliSense: argument of type"Cursor TypeEnum" is incompatible with parameter of type"RecordOpenOptionsEnum"
请问这是什么情况,怎么改??? 谢谢
------解决方案--------------------不是ORACLE错误,是驱动提示的错误
信息不是已经提示参数类型不匹配,查看
------解决方案--------------------C++耶! 俺不懂