Help Oblob code stopped working (oo4o)
Date: Tue, 30 Jan 2001 21:43:13 GMT
Message-ID: <957chf$rb9$1_at_nnrp1.deja.com>
I was working with 0040 2.3 and upgraded to the version that comes with 8i and some code that previously worked stopped working.
I put in some try catch wrappers and changed a couple of things but I cannot get anything to work.
Previously it was this
if(0 != oDynamicSet.GetFieldValue(_T("WORKBOOK"), lpszCompressedBlob, lBlobLength, &lBytesRead))
but that started throwing exceptions with no error text in them . So I changed this to
OBlob blob;
try
{
if(0 != oDynamicSet.GetFieldValue(_T("WORKBOOK"), &blob))
return false;
bool b;
b = blob.IsNull();
b = blob.IsOpen();
}
this code blows up right when I call the IsNull returning error code 16 #define OERROR_NOTOPEN 16 // attempt to use unopened object
I don't know how I'm supposed to open it other than the getfieldvalue call. This is pretty much the same as the sample code.
Thanks
Sent via Deja.com
http://www.deja.com/
Received on Tue Jan 30 2001 - 22:43:13 CET
