一读就报 未指定的错误
哪位大虾指点下,项目很紧
我都想死了,网上查了一个多星期都没有找到解决的方法

解决方案 »

  1.   

    什么错误,贴出读写oralce blob字段的代码
      

  2.   

    用如下代码把你的代码包起来
    try 

        //你的代码 

    catch(_com_error &e) 

        AfxMessageBox(e.Description()); 

    看看能否捕获异常??
      

  3.   

    try
    db.pRec->Open((_bstr_t)hsql,
    db.pConn.GetInterfacePtr(), //获得库连库的IDispatch指针
    adOpenDynamic,
    adLockOptimistic,
    adCmdText
    );

    AfxMessageBox("db");
    _variant_t cstr;
    CString str;
    while(!db.pRec->adoEOF){
    AfxMessageBox("0");
    cstr=db.pRec->GetCollect("cid");
    str = (char*)_bstr_t(cstr);
    msql+=str;
    AfxMessageBox("1");
    cstr=db.pRec->GetCollect("cdata");
    locoMess=(char*)_bstr_t(cstr);
    AfxMessageBox("2");
    DataBase db1;
    db1.InitInstance();
    db1.insertSql(msql);
    AfxMessageBox("3");
    AfxMessageBox(msql);
    db.pRec->MoveNext();
    }


    }catch(_com_error &e){
    AfxMessageBox(e.ErrorMessage());
    }
      

  4.   

    HSQL里,select command_id as cid,command_data as cdata from emd_message where STATUS_FLAG =0
    command_data 为blob
      

  5.   

    cdata是blob字段? 你怎么这样读..参考如下文章:
    http://www.vckbase.com/document/viewdoc/?id=719
    http://www.vckbase.com/document/viewdoc/?id=252