๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #446

Re: How to get the "real live" HTML source?

#446
From: Enrique
Date: Fri, 29 Dec 2006 12:55
39 lines
2619 bytes
OK, so, if we use TComInterface then we don't need to call Release(), but
it's necessary if we use something like:
IHTMLElementCollection* childrenElements= NULL;
Therefore... what are the disadvantages of TComInterface, I mean... if it
guarantees a clean memory why there are so many codes that use "simple"
pointers?

Thanks for your help Gambit ! I really learned more in these few mails that
reading the MSDN and a lot of codes for months.
enrique.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> escribi๏ฟฝ en el mensaje
news:459426d0$1@newsgroups.borland.com...
>
> "Enrique" <enridp@yahoo.com.ar> wrote in message
> news:45941c1c@newsgroups.borland.com...
>
>> What type of smart pointers? classes created by you or using auto_ptr?
>
> auto_ptr is smart pointer for memory that is allocated with the 'new'
> operator.  It will not work on interfaces.
>
> In the code I gave you, the smart pointer being used is TComInterface,
> which
> is declared in utilcls.h.
>
>> So... should I use this code (for example):
>
> Yes.
>
>> or this instead?
>> (changes marked with /** new **/
>
> No.  That code is not using Release() correctly.
>
>
> Gambit
>
>
Technical Details
Message-ID: <45951313@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4582e657@newsgroups.borland.com> <4582eb35$1@newsgroups.borland.com> <45831d53@newsgroups.borland.com> <4583480c$1@newsgroups.borland.com> <45834aa4$1@newsgroups.borland.com> <4583eee0@newsgroups.borland.com> <4586f05a$1@newsgroups.borland.com> <4588092d@newsgroups.borland.com> <458830cd$1@newsgroups.borland.com> <45940667@newsgroups.borland.com> <45940db0$1@newsgroups.borland.com> <45941c1c@newsgroups.borland.com> <459426d0$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,b54437b3b496861e
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII
Reply-To: "Enrique" <enridp@yahoo.com.ar>
From: "Enrique" <enridp@yahoo.com.ar>
Newsgroups: borland.public.cppbuilder.internet.web
References: <4582e657@newsgroups.borland.com> <4582eb35$1@newsgroups.borland.com> <45831d53@newsgroups.borland.com> <4583480c$1@newsgroups.borland.com> <45834aa4$1@newsgroups.borland.com> <4583eee0@newsgroups.borland.com> <4586f05a$1@newsgroups.borland.com> <4588092d@newsgroups.borland.com> <458830cd$1@newsgroups.borland.com> <45940667@newsgroups.borland.com> <45940db0$1@newsgroups.borland.com> <45941c1c@newsgroups.borland.com> <459426d0$1@newsgroups.borland.com>
Subject: Re: How to get the "real live" HTML source?
Date: Fri, 29 Dec 2006 09:55:48 -0300
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 190.30.251.151
Message-ID: <45951313@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1167397651 190.30.251.151 (29 Dec 2006 05:07:31 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail