🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #306

IStream

#306
From: Jonathan Benedicto
Date: Fri, 07 Jan 2005 05:11
25 lines
1469 bytes
How do I use TStreamAdapter with TStream to get a IStream ?

I've tried this :

                pFileStream = new TFileStream(m_pwszURL, fmOpenRead | 
fmShareDenyWrite);
                pStreamAdapter = new TStreamAdapter(pFileStream, 
soReference);

                ...

                hr = 
pReaderAdvanced2->OpenStream((IStream*)(pStreamAdapter), this, NULL);
                if(FAILED(hr)){
                        ShowMessage("Couldn't open file.");
                        break;
                }

But it gives me a access violation.

Thank you.

-- 
Jonathan
 
Technical Details
Message-ID: <41de1a07$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,cf8745dfddf3940b,start
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <incorrect@no.server>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: IStream
Date: Fri, 7 Jan 2005 00:11:37 -0500
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 64.231.6.22
Message-ID: <41de1a07$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105074695 64.231.6.22 (6 Jan 2005 21:11:35 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail