Halo Chris
>
> Die CRecordset Zeiten sind bei mir schon lange
> vorbei,
Hm, soweit ich das hier mitbekommen habe, waren alle stolz darauf mit ADO in
der C Anwendung zuarbeiten - was wäre denn die Alternative?
>aber: kann es sein daß er die Daten erst
> explizit anfordern muß? (beim Lesen der Spalte)
Hier mal ein Codefragment:
HRESULT GetCData(CData* data, CString CommentH, ADoc* doc)
{
_RecordsetPtr pRs = NULL;
_CommandPtr pCmd = NULL;
OpenConn();
pCmd.CreateInstance( __uuidof( Command ) );
pCmd->ActiveConnection = pConn;
ADD_PARAM (pCmd, "@CommentH", adVarChar, CommentH);
pCmd->CommandText = "uspPluginGetClarification";
try
{
pRs = pCmd->Execute(&vtEmpty, &vtEmpty2, adCmdStoredProc);
long pl;
pRs->PutPageSize(pl);
if (pRs != NULL && pRs->adoEOF == VARIANT_FALSE )
{
...
data->ClarificationPlainText = (char*)_bstr_t(RsITEM(pRs,
"ClarificationText")); <-- leer
data->ClarificationRTFText = (char*)_bstr_t(RsITEM(pRs,
"ClarificationTextRTF")); <-- leer
....
}
}
catch(CException *e){CloseConn(); e->Delete();return E_FAIL;}
catch(...){CloseConn();return E_FAIL;}
CloseConn();
return S_OK;
}
Gruß
Rene
_______________________________________________
Coffeehouse Mailingliste, Postings senden an:
[email protected]
An-/Abmeldung und Suchfunktion unter:
http://www.glengamoi.com/mailman/listinfo/coffeehouse