Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cant write IStream::Write due to insufficient disk space

0 views
Skip to first unread message

james merchant

unread,
May 6, 2002, 5:16:06 PM5/6/02
to
Hi!
I'm working on VC++ on windows 2000.
Anyway I have used OpenStreamOnFile to get an IStream pointer to
an XML file. When I tried to write to the Istream it returned
Error: 0x80030070 - There is insufficient disk space.
There is no problem of disk space on my hard drive of course.
Anyone got a clue why IStream::Save is failing ?

The code goes like that:

HRESULT hr = OpenStreamOnFile (MAPIAllocateBuffer, MAPIFreeBuffer,STGM_READ
| STGM_WRITE, xmlFile, NULL, &pXmlStream);

char buff[100]="Hello";

LARGE_INTEGER li = {0, 0};
HRESULT _hh = pXmlStream->Seek(li,STREAM_SEEK_SET,NULL);

unsigned long x;
hr = pXmlStream->Write(buff,5,&x);


Thanks you,
James

james merchant

unread,
May 6, 2002, 5:21:03 PM5/6/02
to
0 new messages