Article View: borland.public.cppbuilder.internet.web
Article #1168Re: CppWebBrowser
From: Remy Lebeau (TeamB)
Date: Wed, 08 Jun 2005 17:05
Date: Wed, 08 Jun 2005 17:05
23 lines
1543 bytes
1543 bytes
"toudidel" <toudidel@oDWA.pl> wrote in message
news:42a6e393$1@newsgroups.borland.com...
> TMemoryStream* mstm=new TMemoryStream();
> IdHTTP->Get("http://www.dot.com/",mstm);
You did not seek the stream back to Position=0 before loading it into the
browser.
> TStreamAdapter *IStr=new TStreamAdapter(mstm,soReference);
You are leaking your TStreamAdapter. You never free it.
>
wb->Document->QueryInterface(IID_IPersistStreamInit,(void**)&pPersistStreamI
nit);
Always make sure to check that QueryInterface() actually succeeds before
trying to access the interface that it returns.
Gambit
Technical Details
Message-ID:
<42a7254c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42a0be46@newsgroups.borland.com> <42a0c350$1@newsgroups.borland.com> <42a6e393$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,a4609a45578860c9 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <42a0be46@newsgroups.borland.com> <42a0c350$1@newsgroups.borland.com> <42a6e393$1@newsgroups.borland.com> Subject: Re: CppWebBrowser Date: Wed, 8 Jun 2005 10:05:45 -0700 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <42a7254c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118250316 68.69.17.41 (8 Jun 2005 10:05:16 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail