从数据信息库文件载入第一个字段名的情况下,下边那样写,会提醒“在相匹配需要名字或序数的结合中 找不到新项目”
Fields* fields = NULL;
this- m_pRecordset- get_Fields( fields);
try{
if(!this- m_pRecordset- adoEOF){
CString r=(_bstr_t)fields- Item[0]- GetValue();
return r;
}
catch(_com_error e)
{
}
处理方式是
Item[]这儿传到long种类,即
CString r=(_bstr_t)fields- Item[(long)0]- GetValue();
Copyright © 广州凡科互联网科技有限公司 版权所有 粤ICP备10235580号
全国服务电话:4000-399-000 传真:021-45545458
公司地址:广州市海珠区工业大道北67号凤凰创意园