IStream to FILE*
-
Dear All, I have alot of old functions that have 'FILE *' as a passing parameter. Now I am using Compound File...It uses IStream (from IStorage). Does anybody know how to convert IStream to FILE* ? Thank's
Fwzklmn wrote:
Does anybody know how to convert IStream to FILE* ?
In general you can't. An
IStream
is more abstract then a file: while someIStream
implementations wrap files most will not. Steve -
Dear All, I have alot of old functions that have 'FILE *' as a passing parameter. Now I am using Compound File...It uses IStream (from IStorage). Does anybody know how to convert IStream to FILE* ? Thank's
you can use this(use from ISream only) (of course this is only a suggestion
IStream *m_StreamFile; SHCreateStreamOnFile(filename,STGM_READ,&m_StreamFile);
_**
**_
whitesky